RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
The type in Java is a combination of a fully qualified class name and its 
defining classloader. So the two objects with the same class name are 
considered different types in your two web applications because each web 
application is loaded by the dedicated webapp classloader.
 
To solve your problem you can use object serialization or if your objects are 
the java beans you can use the java.beans encoding.
 
The XMLEncoder class is a complementary alternative to the ObjectOutputStream 
and can used to generate a textual representation of a JavaBean in the same way 
that the ObjectOutputStream can be used to create binary representation of 
Serializable objects.   
 
--Seva



From: Surya Mishra [mailto:[EMAIL PROTECTED]
Sent: Mon 10/3/2005 4:12 PM
To: Tomcat Users List
Subject: ClassCastException while sharing objects accross applications



Hi,

I am trying to share an object between 2 applications deployed on the same
tomcat server. I have put the object in the ServletContext in my first
application. I access the object using
ServletContext.getContext(firstApp).getAttribute(object);.
The object comes in fine but it won't let me cast it to the actual Object
Type. I get a ClassCastException. I tried printing the name of the class.
That also came fine (same class name).

Thanks in advance.
-Surya




Re: Script to create tomcat service on windows?

2005-10-04 Thread Matej Kafadar

Hi,

try to register Tomcat as service with nice GUI.

GUI is Tomcat Service Manager
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview

regards

Matej

David Kerber wrote:
Does anybody have a script to create a tomcat service on windows 2000? 
I'm trying to set my system up to run multiple copies of tomcat at the 
same time (on different ports, obviously), and can't get the service to 
create properly.


Thanks!
Dave

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



setting the context path in tomcat5.5.9?

2005-10-04 Thread Mbah Tenjoh-Okwen
hello

i would like to know how to set the context path in
tomcat5.5.9 hi

 I  also read something and a build.properties file
and i dont know how to do this too.

please i need help on this cause i cant see my
application file when i give in the uri
http://localhost:8080/myApp






___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Andrés Glez .

What about using JNDI to share objects between webapps?

I think that:

init(){
...
String context = java:comp/env/;
InitialContext ic = new InitialContext();
ClassX c = (ClassX) ic.lookup(sContexto);
...
}
should return the same object to different servlets/webapps, if you define 
the jndi-resource globally, i.e., in conf/server.xml



- Original Message - 
From: Seva Popov [EMAIL PROTECTED]
To: Tomcat Users List Surya Mishra 
[EMAIL PROTECTED]@gmail.com; Tomcat Users 
List tomcat-user@jakarta.apache.org

Sent: Tuesday, October 04, 2005 8:41 AM
Subject: RE: ClassCastException while sharing objects accross applications


The type in Java is a combination of a fully qualified class name and its 
defining classloader. So the two objects with the same class name are 
considered different types in your two web applications because each web 
application is loaded by the dedicated webapp classloader.


To solve your problem you can use object serialization or if your objects 
are the java beans you can use the java.beans encoding.


The XMLEncoder class is a complementary alternative to the 
ObjectOutputStream and can used to generate a textual representation of a 
JavaBean in the same way that the ObjectOutputStream can be used to create 
binary representation of Serializable objects. 


--Seva



From: Surya Mishra [mailto:[EMAIL PROTECTED]
Sent: Mon 10/3/2005 4:12 PM
To: Tomcat Users List
Subject: ClassCastException while sharing objects accross applications



Hi,

I am trying to share an object between 2 applications deployed on the same
tomcat server. I have put the object in the ServletContext in my first
application. I access the object using
ServletContext.getContext(firstApp).getAttribute(object);.
The object comes in fine but it won't let me cast it to the actual Object
Type. I get a ClassCastException. I tried printing the name of the class.
That also came fine (same class name).

Thanks in advance.
-Surya




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



httpConnector secure=true problem (second attempt)

2005-10-04 Thread Reynir Hubner
Hi,

I'm trying to have one connector on tomcat 5.0.x open with secure=true
with
out it being SSL or https. I just want request.isSecure() return true.
This is the setup for the connector :

  Connector port=9020

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   debug=99 connectionTimeout=2

   disableUploadTimeout=true secure=true scheme=http  /

The port is opened with out errors, but does never return anything, and
I see no errors in my log.
Am I missing out on something or is this a bug ?, It works fine with
tomcat 4.1.x.

Any suggestions ?
thanx
[EMAIL PROTECTED]

ps. thanx for the info Mark.


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



Re: How to PreCompile JSPs

2005-10-04 Thread Frank Langanke

Murali schrieb:


Hi ,
Can you someone provide me some information on how to precompile JSPs
(probably thousands of JSPs) ?
 Regards,
Murali

 


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

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



Renaming/Deleting .gif under tomcat 5

2005-10-04 Thread Kurt Spescha
Hallo,

Is there a restriction on renaming/deleting .gif (as example) files
(with Java File class) under tomcat5 (.xml etc works)? With exactly the
same programs under tomcat3, there is no problem (i.e.: shouldn't be a
program error).

rgrds

Kurt Spescha
Consor AG, CH-8006 Zürich
+41 (0)44 368 35 44
+41 (0)76 560 66 89
[EMAIL PROTECTED]

 BITTE BEACHTEN 

Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.




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



tomact logs

2005-10-04 Thread mukesh
Hi friends,

 

I have installed Netbeans 4.1 which has jakarta-tomcat-5.5.7
bundled with it. Tomcat is working fine but logs are not being created. My
system OS is Windows XP. How can I get logs?

 

Please advice.

 

Thanks  regards,

Mukesh Kumar



Re: JasperException: Unable to compile class for JSP

2005-10-04 Thread Tim Funk

Put it in a package ... http://jakarta.apache.org/tomcat/faq/classnotfound.html

-Tim

Goo GGooo wrote:


On 10/4/05, Wendy Smoak wrote:


From: Goo GGooo [EMAIL PROTECTED]


An error occurred at line: 1 in the jsp file: /name.jsp
Generated servlet error:
UserData cannot be resolved or is not a type
===

Files webapps/tut/name.jsp and
webapps/tut/WEB-INF/classes/UserData.java are attached.


Try putting UserData in a package.



That works, cool! What's the reason for that? Can I make it running
without packages? (just interested, not that I'm unhappy with having
it in a package :-)



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



Re: log4j log viewer for tomcat

2005-10-04 Thread Andrés Glez .

chainsaw

- Original Message - 
From: Leon Rosenberg [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, October 02, 2005 1:17 PM
Subject: Re: log4j log viewer for tomcat


lf5

regards
Leon

On 10/2/05, matador [EMAIL PROTECTED] wrote:

win200x
tomcat 5.5.9
jdk 1.5.x
log4j 1.2.9 (i think)

standard log4j setup with logs going into logs dir under tomcat install.

does anyone have any recommendations for a webapp or workaround that 
allows

me to view these files.  the obvious ways (e.g. ftp, ssh, etc) are not an
option.

thx


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



directory access restriction with tomcat?

2005-10-04 Thread Yassine ELassad

Hello everyone,

i have a short urgent question:  i would like to know if i can use my tomcat 
with a mysql based RealM to restrict access to some directories ?

Thanks

YEL
Greetings From Cologne
__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



Procrun returns too fast.

2005-10-04 Thread Nadia Kunkov
Hi,
I'm an absolute beginner in setting up services on Windows box.
Please, bear with me if my questions seem stupid.
I have a windows XP machine, I'm using Oracle Java Developer for java 
develpment, I'm using Quartz as a scheduler.  We will be transferring our 
application to a Linux box eventually.
I need to set up a service and I understand that commons-daemon package will 
allow me to do that.
I was not able to find a built version of procrun  and I don't have a C or C++ 
compiler.
I found out that people use tomcat5.exe insted since that seems to be a 
compiled version of procrun.
Here is how I tried setting up my service:


C:\tomcat\jakarta-tomcat-5.5.9\bintomcat5.exe //IS//MyTest 
--DisplayName=MyTest 
\ --Install=C:\tomcat\bin\tomcat5.exe --Jvm=auto --StartMode=jvm 
--StopMode=jvm 
\ --StartClass=com.mypackage.pfjobmanager.testQuartz \ 
--C:\Program Files\JavaDeveloper\jdev\mywork\PFJobManager\Project\src \ 
--JavaHome=C:\Program Files\JavaDeveloper\jdk\jre\bin

When executed on the command line, the above command doesn't give me any errors 
but returns right away.

When I ran:
sc query MyTest

here is what I get:

SERVICE_NAME: MyTest
TYPE   : 10  WIN32_OWN_PROCESS
STATE  : 1  STOPPED
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE: 1077   (0x435)
SERVICE_EXIT_CODE  : 0  (0x0)
CHECKPOINT : 0x0
WAIT_HINT  : 0x0

I'm not sure how to read the above.
How do I know my service is working?
The class that the service is supposed to run should wait about a minute and 
then print some lines to stdout.
How can I ran a good test?

Your help is greatly appreciated.
Thank you.
NK





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



Re: Easy Servlet Question

2005-10-04 Thread Partheeban Boopathy
What is u r declaration in web.xml file.
If you give any alias name then you have to use that in u r URL.
http://localhost:8080/app/anyaliasname.
 Parthi

 On 10/3/05, Andrew Pierce [EMAIL PROTECTED] wrote:

 Hello. I realize this is about the stupidest question I could ask but,
 I've scoured the web, etc. and cannot get an easy example of making
 servlets actually work with Tomcat.

 I have written a few Hello World servlets and gotten them to work with
 Resin but I cannot get even the most simple servlet to work with Tomcat.

 I create the servlet code such as the one found here:

 http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp

 I compile the servlet and place the .class file in the
 $CATALINA_HOME/webapps/app/WEB-INF/classes directory.

 Then I modify the $CATALINA_HOME/webapps/app/WEB-INF/web.xml to include
 the declarations for the servlet.

 I stop and restart Tomcat and alas, all I get is 404 when I try to
 access the servlet with a url like
 http://localhost:8080/app/HelloServlet.

 I know this has got to VERY simple. Thanks in advance.
 Andrew

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




Tomcat4 to 5 migration

2005-10-04 Thread Kevin Passey
Hi I am migrating my apps from a server running Tomcat4 on a RHEL3 to a 
Tomcat5 installation of a FC4 box.


The apps work on the TC4 box but I am getting the following on the TC 5 box 
when I try and run anything.


Can someone point me to any migration docs.

I have the jt400.jar installed at /var/lib/tomcat5/common/lib as per the 
docs. and $CATALINA_HOME/common/lib directories, are made visible through 
this class loader. By default, that includes the following:

 a.. ant.jar - Apache Ant.
 b.. commons-collection.jar - Jakarta commons collection.
 c.. commons-dbcp.jar - Jakarta commons DBCP, providing a JDBC connection 
pool to web applications.
 d.. commons-el.jar - Jakarta commons el, implementing the expression 
language used by Jasper.

 e.. commons-pool.jar - Jakarta commons pool.
 f.. jasper-compiler.jar - The JSP 2.0 compiler.
 g.. jasper-runtime.jar - The JSP 2.0 runtime.
 h.. jsp-api.jar - The JSP 2.0 API.
 i.. naming-common.jar - The JNDI implementation used by Tomcat 5 to 
represent in-memory naming contexts.
 j.. naming-factory.jar - The JNDI implementation used by Tomcat 5 to 
resolve references to enterprise resources (EJB, connection pools).
 k.. naming-resources.jar - The specialized JNDI naming context 
implementation used to represent the static resources of a web application.

 l.. servlet-api.jar - The Servlet and JSP API classes.
 m.. xerces.jar - The XML parser that is visible by default to Tomcat 
internal classes and to web applications. 

Or did I get it wrong.

Thanks

Kevin

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,
 boolean) (Unknown Source) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, java.lang.String,java.lang.Throwable, 
boolean) (Unknown Source) 
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse) (Unknown Source) 
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,javax.servlet.ServletResponse)
 (Unknown Source) 
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, 
org.apache.catalina.Response, org.apache.catalina.ValveContext)(Unknown Source) 
org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request,org.apache.coyote.Response)
 (Unknown Source)root causejava.lang.NullPointerException 
com.ibm.as400.access.SystemProperties.getProperty(java.lang.St
ring)(Unknown Source) 
com.ibm.as400.access.AS400JDBCDriver.initializeConnection(com.ibm.as400.access.JDDataSourceURL,
 com.ibm.as400.access.JDProperties,java.util.Properties) (Unknown Source) 
com.ibm.as400.access.AS400JDBCDriver.connect(java.lang.String,java.util.Properties)
 (Unknown Source) 
org.apache.commons.dbcp.DriverConnectionFactory.createConnection() 
(UnknownSource) org.apache.commons.dbcp.PoolableConnectionFactory.makeObject() 
(UnknownSource) 
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(org.apache.commons.dbcp.PoolableConnectionFactory)
 (Unknown Source) org.apache.commons.dbcp.BasicDataSource.createDataSource() 
(Unknown Source) org.apache.commons.dbcp.BasicDataSource.getConnection() 
(Unknown Source) org.apache.taglibs.dbtags.connection.ConnectionTag.doEndTag() 
(UnknownSource) 
org.apache.jsp.warehouseInquiry_jsp._jspService(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse) (Unknown Source) 
org.apache.jasper.runtime.Http
JspBase.service(javax.servlet.http.HttpServletRequest, 
javax.servlet.http.HttpServletResponse) (Unknown Source) 
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,javax.servlet.ServletResponse)
 (Unknown Source) 
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, boolean) (UnknownSource) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse, java.lang.String,java.lang.Throwable, 
boolean) (Unknown Source) 
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
 javax.servlet.http.HttpServletResponse) (Unknown Source) 
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,javax.servlet.ServletResponse)
 (Unknown Source)


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



RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Caldarale, Charles R
 From: Andrés Glez. [mailto:[EMAIL PROTECTED] 
 Subject: Re: ClassCastException while sharing objects accross 
 applications
 
 What about using JNDI to share objects between webapps?

Won't change anything, due to the previously noted classloader-specific casting 
issue.  What should work (haven't tried it) is to put the defining class for 
the object of interest in shared/classes or shared/lib (if packaged in a jar), 
and remove it from each webapp.  This will create the class under a classloader 
visible to both webapps.

See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
for more info.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Easy Servlet Question

2005-10-04 Thread Ben Souther
I have some demo apps on http://simple.souther.us that you can run.
They're all war files so all you have to do is download to your webapps
directory.

SimpleServlet.war is your basic Hello, World app in a servlet.




On Mon, 2005-10-03 at 21:49, Andrew Pierce wrote:
 Hello. I realize this is about the stupidest question I could ask but, 
 I've scoured the web, etc. and cannot get an easy example of making 
 servlets actually work with Tomcat.
 
 I have written a few Hello World servlets and gotten them to work with 
 Resin but I cannot get even the most simple servlet to work with Tomcat.
 
 I create the servlet code such as the one found here:
 
 http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp
 
 I compile the servlet and place the .class file in the 
 $CATALINA_HOME/webapps/app/WEB-INF/classes directory.
 
 Then I modify the $CATALINA_HOME/webapps/app/WEB-INF/web.xml to include 
 the declarations for the servlet.
 
 I stop and restart Tomcat and alas, all I get is 404 when I try to 
 access the servlet with a url like 
 http://localhost:8080/app/HelloServlet.
 
 I know this has got to VERY simple. Thanks in advance.
 Andrew
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Ben Souther
F.W. Davison  Co.

CONFIDENTIALITY NOTICE:

This e-mail message, and any accompanying documents, is for the sole use
of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.





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



RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Trung Nguyen
To add the context path, you need to edit the $TOMCAT_HOME/conf/server.xml file 
and these lines:

Host name=www.yourdomainname.com debug=0 unpackWARs=true
Context path=/myApp docBase=/where/you/store/your/apps debug=0 
reloadable=true crossContext=true /
/Host

Hope this help...

---Trung


-Original Message-
From: Mbah Tenjoh-Okwen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 4:13 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: setting the context path in tomcat5.5.9?


hello

i would like to know how to set the context path in
tomcat5.5.9 hi

 I  also read something and a build.properties file
and i dont know how to do this too.

please i need help on this cause i cant see my
application file when i give in the uri
http://localhost:8080/myApp






___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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


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



RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Caldarale, Charles R
 From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
 Subject: RE: setting the context path in tomcat5.5.9?
 
 To add the context path, you need to edit the 
 $TOMCAT_HOME/conf/server.xml file and these lines:

This completely ignores the admonition in the Tomcat doc:
Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.

I'd suggest that a careful reading of:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
is in order.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



How to get login username with pageContext?

2005-10-04 Thread 梁炳場
%
pageContext.getRequest().???
List userRoleList =
UserRoleService.getInstance().getUserRoleList();
%

I fail to find getRemoteUser() in pageContext.getRequest
after login with JDBCRealm.
I'd like to pass it in as a parameter in getUserRoleList().

Thanks

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



RE: How to get login username with pageContext?

2005-10-04 Thread Raghupathy,Gurumoorthy
%
String user = request.getRemoteUser();

%

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 04 October 2005 15:34
To: Tomcat Users List
Subject: How to get login username with pageContext?


%
pageContext.getRequest().???
List userRoleList =
UserRoleService.getInstance().getUserRoleList();
%

I fail to find getRemoteUser() in pageContext.getRequest
after login with JDBCRealm.
I'd like to pass it in as a parameter in getUserRoleList().

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: setting the context path in tomcat5.5.9?

2005-10-04 Thread Stephen Faustino
In an issue related to this and the documentation cited below, my attempts
to create a Context in the 
META-INF/context.xml were not successful, that is, I could create the
context.xml file but the attributes did not seem to take affect. I could set
them in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory and it
would work.
As an example, if I defined the attributes antiJARLocking=true and
antiResourceLocking=true in the application's META-INF/context.xml file, I
would still have jar and resource locking issues. When I defined the same
attributes in the $CATALINA_HOME/conf/[enginename]/[hostname] directory, jar
and resource locking was not an issue.


Stephen L. Faustino
Senior Software Engineer

SecureLogix Corporation
13750 San Pedro, Suite 230
San Antonio, TX 78232
Direct/Vmail (210) 402-9669 x949
http://www.securelogix.com

SECURELOGIX CORPORATION EMAIL NOTICE - This transmission may be strictly
confidential. If you are not the intended recipient of this message, you may
not disclose, print, copy, or disseminate this information. If you have
received this in error, please reply and notify the sender (only) and delete
the message. Unauthorized interception of this e-mail is a violation of
federal criminal law. This communication does not reflect an intention by
the sender or the sender's principal to conduct a transaction or make any
agreement by electronic means. Nothing contained in this message or in any
attachment shall satisfy the requirements for a writing, and nothing
contained herein shall constitute a contract or electronic signature under
the Electronic Signatures in Global and National Commerce Act, any version
of the Uniform Electronic Transactions Act, or any other statute governing
electronic transactions.


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 9:33 AM
To: Tomcat Users List
Subject: RE: setting the context path in tomcat5.5.9?


 From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
 Subject: RE: setting the context path in tomcat5.5.9?
 
 To add the context path, you need to edit the 
 $TOMCAT_HOME/conf/server.xml file and these lines:

This completely ignores the admonition in the Tomcat doc:
Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.

I'd suggest that a careful reading of:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
is in order.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


Certificate authentication

2005-10-04 Thread James Rome
I have looked at the source code and it seems to me that presented
client certificates are only checked for their validity dates, and NOT
for whether they have been revoked. I am able to access my Tomcat site
with a revoked certificate.

It is easy to implement OCSP and/or CRL checking, so I implemented an
X509Realm that extends BasicRealm. I overrode all of the authenticate()
methods, but they are never called when I access my site. I put my realm
in the Engine and require CLIENT-CERTS in the site Context.

Why don't my methods get called? The start() method gets called, but
nothing else.

Jim Rome

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



Re: How to get login username with pageContext?

2005-10-04 Thread 梁炳場
It is blank if it is printed like this

%
  String user = request.getRemoteUser();
%
c:out value=${user} /



2005/10/4, Raghupathy,Gurumoorthy [EMAIL PROTECTED]:
 %
String user = request.getRemoteUser();

 %

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 04 October 2005 15:34
 To: Tomcat Users List
 Subject: How to get login username with pageContext?


 %
pageContext.getRequest().???
List userRoleList =
 UserRoleService.getInstance().getUserRoleList();
 %

 I fail to find getRemoteUser() in pageContext.getRequest
 after login with JDBCRealm.
 I'd like to pass it in as a parameter in getUserRoleList().

 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]



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



RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Caldarale, Charles R
 From: Stephen Faustino [mailto:[EMAIL PROTECTED] 
 Subject: RE: setting the context path in tomcat5.5.9?
 
 my attempts to create a Context in the META-INF/context.xml
 were not successful, that is, I could create the context.xml
 file but the attributes did not seem to take affect. I could
 set them in the $CATALINA_HOME/conf/[enginename]/[hostname]/ 
 directory and it would work.

(This is really a different topic; a new thread would be more
appropriate.)

The conf/[enginename]/[hostname]/[appname].xml overrides
META-INF/context.xml, so make sure to remove the former before trying
the latter.  Also, check the tag spelling in your context.xml file
carefully; numerous people have been caught out by using context
instead of Context, for example.  If that checks out try posting your
META-INF/context.xml file for people to look at.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Script to create tomcat service on windows?

2005-10-04 Thread David Kerber

Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Re: Script to create tomcat service on windows?


Do they still work?



Yes, they still work.  (It probably would have taken you less time to
try it than to e-mail the question.)  I've never seen a justifiable
explanation of why the scripts were left out of the .exe download.


I would have, except that I was at home and didn't have access to try 
it.  Thanks for the response...



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



Tomcat sample initial context for jboss

2005-10-04 Thread Lee Morgan
Does anyone have a sample initial context setup that works with jboss
external?  Do I need to create a resource for the context that will be
performing the JNDI lookup in the conf/server.xml file?  I have read
all
the docs and scoured the net but cannot find a solution.


*Disclaimer
This e-mail and any attachments may contain confidential and/or 
privileged material; it  is for the intended addressee(s) only.  If 
you are not a named addressee, you must not use, retain or disclose 
such information.
 
Serco cannot guarantee that the e-mail or any attachments are free 
from viruses.
 
The views expressed in this e-mail are those of the originator and do 
not necessarily represent the views of Serco.
 
Nothing in this e-mail shall bind Serco in any contract or obligation.
 
Serco Group plc.  Registered in England and Wales.  No: 2048608
Registered Office:  Serco House, 16 Bartley Wood Business Park, 
Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom.
*End Disclaimer


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



SSL question

2005-10-04 Thread Raueber Hotzenplotz
Hi

I've got a servlet which works fine when using http. But when I want to access
it through https I get a certificate unknown exception. Why does
https://localhost:8443 work in a browser but accessing my servlet (with java
client)  not? Do I need to make my servlet SSL aware? Using another secure
webserver works with my client. Hope someone can help.

Thanks!



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: SSL question

2005-10-04 Thread Yassine ELassad

hi i'm not sure if this will help you but i have hade a quite similar issue :
i have passed a full URL a param Vlaue in my web.xml something like

http://localhost:8080/MyServlet

both http and :8080 are specifying a differnt port number than the ssl port so
if you are performing such a call you better change it into /MyServlet/  and 
the servlet conatainer handels everythings else for you



i hope this helps

Greeting from Cologne

YEL

 directBOX Reply ---
From: RaueberHotzenplotz ([EMAIL PROTECTED])
To: tomcat-user@jakarta.apache.org
Date: 04.10.2005 17:55:03

Hi

I've got a servlet which works fine when using http. But when I want to access
it through https I get a certificate unknown exception. Why does
https://localhost:8443 work in a browser but accessing my servlet (with java
client)  not? Do I need to make my servlet SSL aware? Using another secure
webserver works with my client. Hope someone can help.

Thanks!



___
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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


__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



Rép. : SSL question

2005-10-04 Thread Antony GUILLOTEAU
Many articles talk about how access https using java client throws 
HttpsURLConnection.

You must use :
  - your own TrustManager (implements javax.net.ssl.X509TrustManager)
  - your own KeyManager  (implements javax.net.ssl.X509KeyManager)
  - your own HostnameVerifer(implements javax.net.ssl.HostnameVerifer)

and use this following code : 

TrustManager[] objTrustManager = new TrustManager[] {new 
MyX509TrustManager()};
KeyManager[] objKeyManager = new KeyManager[] {new MyX509KeyManager()};

SSLContext sc = SSLContext.getInstance(SSL);
sc.init(objKeyManager, objTrustManager, new SecureRandom());

SSLSocketFactory objSocketFactory = sc.getSocketFactory();
HttpsURLConnection.setDefaultSSLSocketFactory(objSocketFactory);

HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifer());


...
URL objUrl = new URL(...)
HttpsURLConnection objHttpsURLConnection = 
(javax.net.ssl.HttpsURLConnection) objUrl.openConnection();

I hope it's help you.

 [EMAIL PROTECTED] 04/10/2005 17:54:30 
Hi

I've got a servlet which works fine when using http. But when I want to access
it through https I get a certificate unknown exception. Why does
https://localhost:8443 work in a browser but accessing my servlet (with java
client)  not? Do I need to make my servlet SSL aware? Using another secure
webserver works with my client. Hope someone can help.

Thanks!



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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


Re: Rép. : SSL question

2005-10-04 Thread Raueber Hotzenplotz
Hi, thanks!

I've got my own TrustManager/HostnameVerifier and it works when I use Apache's
SecureWebServer and SecureXmlRpcClient. I'm not using javax.net.ssl, but
instead com.sun.net.ssl - couldn't make it work with javax.net.ssl. Is the code
below necessary for the servlet as well? Thought Tomcat has got all the
information about trusted certificates in its keystore.


--- Antony GUILLOTEAU [EMAIL PROTECTED] wrote:

 Many articles talk about how access https using java client throws
 HttpsURLConnection.
 
 You must use :
   - your own TrustManager (implements javax.net.ssl.X509TrustManager)
   - your own KeyManager  (implements javax.net.ssl.X509KeyManager)
   - your own HostnameVerifer(implements javax.net.ssl.HostnameVerifer)
 
 and use this following code : 
 
 TrustManager[] objTrustManager = new TrustManager[] {new
 MyX509TrustManager()};
 KeyManager[] objKeyManager = new KeyManager[] {new MyX509KeyManager()};
 
 SSLContext sc = SSLContext.getInstance(SSL);
 sc.init(objKeyManager, objTrustManager, new SecureRandom());
 
 SSLSocketFactory objSocketFactory = sc.getSocketFactory();
 HttpsURLConnection.setDefaultSSLSocketFactory(objSocketFactory);
 
 HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifer());
 
 
 ...
 URL objUrl = new URL(...)
 HttpsURLConnection objHttpsURLConnection =
 (javax.net.ssl.HttpsURLConnection) objUrl.openConnection();
 
 I hope it's help you.
 
  [EMAIL PROTECTED] 04/10/2005 17:54:30 
 Hi
 
 I've got a servlet which works fine when using http. But when I want to
 access
 it through https I get a certificate unknown exception. Why does
 https://localhost:8443 work in a browser but accessing my servlet (with java
 client)  not? Do I need to make my servlet SSL aware? Using another secure
 webserver works with my client. Hope someone can help.
 
 Thanks!
 
 
 
 ___ 
 To help you stay safe and secure online, we've developed the all new Yahoo!
 Security Centre. http://uk.security.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:


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


Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml.  But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs.  Is 
there something extra I need to do to make them visible from server.xml?


Thanks,
Dave

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



Re: ClassCastException while sharing objects accross applications

2005-10-04 Thread Jon Wingfield

What Chuck says is right.
This approach has a few gotchas though, especially if ClassX is complex 
and references many other objects loaded from the same (WebApp) 
classloader. You can end up with a lot of classes up in the common 
repository. -o


Make ClassX an interface, if you can. That way only the interface (and 
any referenced types) need go in common. Refactoring here we go :)


HTH,

Jon

Caldarale, Charles R wrote:
From: Andrés Glez. [mailto:[EMAIL PROTECTED] 
Subject: Re: ClassCastException while sharing objects accross 
applications


What about using JNDI to share objects between webapps?



Won't change anything, due to the previously noted classloader-specific casting 
issue.  What should work (haven't tried it) is to put the defining class for 
the object of interest in shared/classes or shared/lib (if packaged in a jar), 
and remove it from each webapp.  This will create the class under a classloader 
visible to both webapps.

See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
for more info.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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: setting the context path in tomcat5.5.9?

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


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


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


Mark
tomcat-user-owner


Mbah Tenjoh-Okwen wrote:

hello

i would like to know how to set the context path in
tomcat5.5.9 hi

 I  also read something and a build.properties file
and i dont know how to do this too.

please i need help on this cause i cant see my
application file when i give in the uri
http://localhost:8080/myApp






___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com


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








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



Re: httpConnector secure=true problem (second attempt)

2005-10-04 Thread Mark Thomas

This is a bug that is fixed in 5.5.10+

Mark

Reynir Hubner wrote:

Hi,

I'm trying to have one connector on tomcat 5.0.x open with secure=true
with
out it being SSL or https. I just want request.isSecure() return true.
This is the setup for the connector :

  Connector port=9020

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   debug=99 connectionTimeout=2

   disableUploadTimeout=true secure=true scheme=http  /

The port is opened with out errors, but does never return anything, and
I see no errors in my log.
Am I missing out on something or is this a bug ?, It works fine with
tomcat 4.1.x.

Any suggestions ?
thanx
[EMAIL PROTECTED]

ps. thanx for the info Mark.


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








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



tomcat.log

2005-10-04 Thread Jiang, Peiyun
Tomcat 5.5.9:

What is tomcat.log and how is it created?

Peiyun Jiang

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



AbstractMethodError

2005-10-04 Thread Luis
Hi, I have changed my version of tomcat (before 4.0.28) to v.5.5 but my old 
application (works in old tomcat) doesn´tt work in the new version ,
I don´t know what to do about it , when I start my tomcat I receive this 
message.

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.AbstractMethodError
at org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at 
org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:673)
at 
org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:610)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1030)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4053)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)

Anyone knows what this can be ?
Thanks
Luis


Luis


Re: Certificate authentication

2005-10-04 Thread Mark Thomas

James Rome wrote:

Why don't my methods get called? The start() method gets called, but
nothing else.
Take a look at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/authenticator/package-summary.html


Mark



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



RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
Yes, using the shared classloader seems like an obvious and easy option for 
sharing the objects between the web applications. However, like the previous 
author notes relying on the classloader can bring up some issues like 
introducing new dependencies and reducing the web application incapsulation. 

That is why the alternative way of sharing objects between the web applications 
is worth considering I guess. As I noted before one can achive this using the 
java object serialization or the java.beans xml encoding. This technique allows 
one to effectively eliminate the class loader information from the type and 
thus share the objects between the web applications without using the shared 
classloader.

BTW, one can not use the Tomcat JNDI tree as a place to share the objects 
between the web apps, because Tomcat does not allow one to put an arbitrary 
object into the JNDI tree. One possible way is to utilize the system 
MBeanServer.

--Seva

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 9:47 AM
To: Tomcat Users List
Subject: Re: ClassCastException while sharing objects accross applications

What Chuck says is right.
This approach has a few gotchas though, especially if ClassX is complex 
and references many other objects loaded from the same (WebApp) 
classloader. You can end up with a lot of classes up in the common 
repository. -o

Make ClassX an interface, if you can. That way only the interface (and 
any referenced types) need go in common. Refactoring here we go :)

HTH,

Jon

Caldarale, Charles R wrote:
From: Andrés Glez. [mailto:[EMAIL PROTECTED] 
Subject: Re: ClassCastException while sharing objects accross 
applications

What about using JNDI to share objects between webapps?
 
 
 Won't change anything, due to the previously noted classloader-specific 
 casting issue.  What should work (haven't tried it) is to put the defining 
 class for the object of interest in shared/classes or shared/lib (if packaged 
 in a jar), and remove it from each webapp.  This will create the class under 
 a classloader visible to both webapps.
 
 See:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html
 for more info.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 -
 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 does not honor acceptCount configuration variable

2005-10-04 Thread Wei Zhao

Hi:

I am resending this question since I did not get any
answer last time.

We've just migrated Tomcat from version 4.06 to 5.5.9
and found that the configuration variable
'acceptCount' under 'Connector' element takes no
effect. 


For example, if I set acceptCount to 1000 but leave
maxThreads to 75, Tomcat cannot handle 500 concurrent
requests. I have to increase the maxThreads to around
1000, otherwise, most of the request will be rejected
by Tomcat. But you know, increase the maxThread is not
an efficient way and web server should be able to keep
a queue much bigger than the maximum work thread. 

I remember we have similar problem in Tomcat 4.0.6 and
we did some code change and recompile catalina.jar
ourselves to solve the probelm. I am wondering whether
this issue has been resolved in Tomcat 5.5

Connector
port=8900
protocol=HTTP/1.1
maxThreads=75
acceptCount=500
redirectPort=8901
enableLookups=true
maxSpareThreads=75
minSpareThreads=5
connectionTimeout=5000
maxHttpHeaderSize=8192
disableUploadTimeout=true/
 

Thanks

Wei



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[ANNOUNCE] Stylus Studio offers Altova XMLSPY AND MAPFORCE Users a FREE Upgrade to Stylus Studio 6 XML Enterprise Edition.

2005-10-04 Thread Stylus Studio
[ANNOUNCE] Dear Tomcat-Users,

Customers who have purchased qualifying Altova XML Products, including
Altova XMLSPY 2005, Altova XMLSPY(r) 2004 (Enterprise or Professional
Edition), Mapforce(r) 2005, Mapforce 2004 (Enterprise or Professional
Edition), on or before October 1, 2005 can now obtain a free upgrade
license to Stylus Studio(r) 6 XML Enterprise Edition, the World's Best
XML IDE. Limit one free single-user license of Stylus Studio 6 XML
Enterprise Edition per order, per company. Altova XMLSPY customers pay
absolutely NOTHING for this upgrade to Stylus Studio.

But wait, there's more! Altova XMLSPY users who take advantage of this
offer will receive a coupon good for 30% off an unlimited number of
single-user licenses of Stylus Studio 6 XML Enterprise Edition and
Stylus Studio 6 XML Professional Edition from the Stylus Studio Online
Shop (good for 14 days). This offer cannot be combined with any other
offers, cannot be applied to past purchases, and expires October 14,
2005. Qualifying customers can see complete offer details and upgrade
online today!

Read the announcement here:
http://www.stylusstudio.com/press/2005_10_04_special_upgrade.html

Qualified customers can get their free upgrade to Stylus Studio 6 XML
Enterprise Edition here:
https://www.stylusstudio.com/buy/getoutofjailfree.html


Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com

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



Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
David, 
 
Just in case you haven't done this yet, have you checked to see if the 
environment variable shows up as a catalina:type=Environment MBean? if so you 
should be able to access it. Hope this helps. 
 
- andy gordon

David Kerber [EMAIL PROTECTED] wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:




Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?

Thanks,
Dave

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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Setting up HTTP Basic for a full Web-App

2005-10-04 Thread David Johnson
Anyone have any thoughts on this?

On 9/30/05, David Johnson [EMAIL PROTECTED] wrote:

 Hi all.

 I think I'm doing something wrong. I'veadded the following to my web
 application to use http-basicis there anything else I need to do to ensure
 anyone logging in like this has full access to the app?

 !-- Define a security constraint on this application --
 security-constraint
   web-resource-collection
 web-resource-nameEntire Application/web-resource-name

 url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
 !-- This role is not in the default user directory --
 role-namemanager/role-name

   /auth-constraint
 /security-constraint

 !-- Define the login configuration for this application --
 login-config
   auth-methodBASIC/auth-method
   realm-nameMy Application/realm-name

 /login-config

 !-- Security roles referenced by this web application --
 security-role
   description
 The role that is required to log in to the Application
   /description

   role-namemanager/role-name
 /security-role



 --
 -Dave
 [EMAIL PROTECTED]




--
-Dave
[EMAIL PROTECTED]


can't see an application in webapps

2005-10-04 Thread Hugo Osorio
 Hi everybody, i need help from you

I am trying to install a webapp in Tomcat (AlovMap) , I have set up some
others apps on it, but this time i dont know what is happening... i am using
FreeBSD 4.11-STABLE with Tomcat 5.0.29

The application is a map server called Alov Map (http://alov.org)

It works with a database ms access or mysql,etc. I dont know if it's
necessary to have the database up, for having the webapp visible in tomcat?
i have created the directory mapserv BUT i cannot see my publication, it
is in $TOMCAT_HOME/webapps/mapserv

I have done

1. Create a dir in [TOMCAT_HOME]/webapps.
2. Unzip the distribution zip file into this folder.
3. i have created in mysql the database, running the script .sql
4. i have copied the mm.(connector JDBC).jar into the WEB-INF/lib directory
5. i have restarted Tomcat. and go to :
http://myhost:8080/mapserv/index.html

and appears like nothing exists
does not appears anything, this error :
HTTP Status 404 - /mapserv/index.html
--

*type* Status report

*message* */mapserv/index.html*

*description* *The requested resource (/mapserv/index.html) is not
available.*
--
Apache Tomcat/5.0.29 any hint?

thank you


Re: Setting up HTTP Basic for a full Web-App

2005-10-04 Thread Mark Thomas

David,

You post is missing some key information before anyone here is going 
to be able to help you.


What happens that you don't expect to happen?
What doesn't happen that you do expect to happen?

Mark

David Johnson wrote:

Anyone have any thoughts on this?

On 9/30/05, David Johnson [EMAIL PROTECTED] wrote:


Hi all.

I think I'm doing something wrong. I'veadded the following to my web
application to use http-basicis there anything else I need to do to ensure
anyone logging in like this has full access to the app?

!-- Define a security constraint on this application --
security-constraint
 web-resource-collection
   web-resource-nameEntire Application/web-resource-name

   url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   !-- This role is not in the default user directory --
   role-namemanager/role-name

 /auth-constraint
/security-constraint

!-- Define the login configuration for this application --
login-config
 auth-methodBASIC/auth-method
 realm-nameMy Application/realm-name

/login-config

!-- Security roles referenced by this web application --
security-role
 description
   The role that is required to log in to the Application
 /description

 role-namemanager/role-name
/security-role



--
-Dave
[EMAIL PROTECTED]






--
-Dave
[EMAIL PROTECTED]






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



Tomcat JSP problem

2005-10-04 Thread Liubomir Dokov
Hi, I am using Tomcat and I have the following problem: when I develop
and test my
applications on my local computer everything is OK. But a few days
ago, when I
uploaded my .war file to the server where I host my domain something
is wrong. A request to the first(index.jsp) page returns nothing in
response. No exceptions, nothing. Just a blank page. I am using Tomcat
5.0.28 and JDK 1.5.0_02. On the server they have Tomcat 4.1 and JDK
1.4. I tried them locally and they work fine as well. Does anyone have
idea what's wrong? Months ago I had a similar issue with another web
application when upgrading
from Tomcat 5.0.28 to 5.5.8. It was working with 5.0.28 and a blank
page with the new one.

Another thing to consider is that I am using
Windows XP and on the server they are using Linux (Fedora Core). Could
this have something to do with my problem? Please, help!
  

-- 
Best regards,
 Liubomir Dokov mailto:[EMAIL PROTECTED]


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



Re: Tomcat JSP problem

2005-10-04 Thread Schalk Neethling

Liubomir

I have experienced the same problem.

Are you including any servlets in this JSP? Or are you using any 
filters? Any java type that has been pre-compiled locally, is what I am 
basically asking? If so, you will have a major/minor mismatch.Best to 
develop and compile to the same version you have running on the server.


Liubomir Dokov wrote:


Hi, I am using Tomcat and I have the following problem: when I develop
and test my
applications on my local computer everything is OK. But a few days
ago, when I
uploaded my .war file to the server where I host my domain something
is wrong. A request to the first(index.jsp) page returns nothing in
response. No exceptions, nothing. Just a blank page. I am using Tomcat
5.0.28 and JDK 1.5.0_02. On the server they have Tomcat 4.1 and JDK
1.4. I tried them locally and they work fine as well. Does anyone have
idea what's wrong? Months ago I had a similar issue with another web
application when upgrading
from Tomcat 5.0.28 to 5.5.8. It was working with 5.0.28 and a blank
page with the new one.

Another thing to consider is that I am using
Windows XP and on the server they are using Linux (Fedora Core). Could
this have something to do with my problem? Please, help!
 

 



--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
Fax: +27125468436
Web
email:[EMAIL PROTECTED]
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: [EMAIL PROTECTED]

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/

The information transmitted is intended solely for the individual or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of or taking action in 
reliance upon this information by persons or entities other than the intended 
recipient is prohibited. If you have received this email in error, please 
contact the sender and please delete all traces of this material from all 
devices.



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



Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Barnett, Brian W.
I am going through a tuturial on setting up JAAS with Tomcat. It says to
modify $CATALINA_HOME/bin/catalina.sh or $CATALINA_HOME/bin/catalina.bat.
The edit it suggests is something like this:

JAVA_OPTS=-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas-myfile
.conf

Where would a change like this be made in Tomcat 5.5.x?

TIA,
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. 



RE: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Caldarale, Charles R
 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] 
 Subject: Where'd catalina.sh go in 5.5.x ?
 
 Where would a change like this be made in Tomcat 5.5.x?

In the same places.  However, the scripts are not included in the .exe
download for some reason, but are in the .zip version.  (I haven't
checked the .gz one lately.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Larry Meadors
Hm, in my 5.5.9, it is in the bin directory...

Larry


On 10/4/05, Barnett, Brian W. [EMAIL PROTECTED] wrote:
 I am going through a tuturial on setting up JAAS with Tomcat. It says to
 modify $CATALINA_HOME/bin/catalina.sh or $CATALINA_HOME/bin/catalina.bat.
 The edit it suggests is something like this:

 JAVA_OPTS=-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas-myfile
 .conf

 Where would a change like this be made in Tomcat 5.5.x?

 TIA,
 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.
 



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



RE: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Barnett, Brian W.
I do have the .exe download so this would explain it. I'm not sure what this
means though. Does it mean all the .sh, .bat, .properties, .xml, etc., files
are not needed? Does it mean that if I download the .zip and put them there
that they will be used?

Currently, I only have five files in ../bin:
bootstrap.jar
commons-logging-api.jar
tomcat5.exe
tomcat5w.exe
tomcat-juli.jar

Brian

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 4:33 PM
To: Tomcat Users List
Subject: RE: Where'd catalina.sh go in 5.5.x ?


 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
 Subject: Where'd catalina.sh go in 5.5.x ?
 
 Where would a change like this be made in Tomcat 5.5.x?

In the same places.  However, the scripts are not included in the .exe
download for some reason, but are in the .zip version.  (I haven't checked
the .gz one lately.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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

 
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: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Caldarale, Charles R
 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] 
 Subject: RE: Where'd catalina.sh go in 5.5.x ?
 
 Does it mean all the .sh, .bat, .properties, .xml, etc., files
 are not needed?

Only the .bat and .sh files are missing from the .exe version.  The
others are all there, in their appropriate directories.  The scripts are
not needed when Tomcat is run as a service.

 Currently, I only have five files in ../bin:

You'll have about two dozen with the .zip download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Asking again: index.jsp and virtual directories

2005-10-04 Thread David Thielen
That was it - thank you very much - dave

 
David Thielen
www.windwardreports.com
303-499-2544
 

-Original Message-
From: andy gordon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 10:27 AM
To: Tomcat Users List
Subject: Re: Asking again: index.jsp and virtual directories

David, 
 
Have you looked at setting up virtual hosts in tomcat as this seems to be
what you are looking for.
 
- andy gordon

David Thielen [EMAIL PROTECTED] wrote:
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 


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



Re: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Len Popp
I wish they'd put those files back in the .exe distribution, if only
to save work for Chuck!
--
Len

On 10/4/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
  Subject: Where'd catalina.sh go in 5.5.x ?
 
  Where would a change like this be made in Tomcat 5.5.x?

 In the same places.  However, the scripts are not included in the .exe
 download for some reason, but are in the .zip version.  (I haven't
 checked the .gz one lately.)

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 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: Where'd catalina.sh go in 5.5.x ?

2005-10-04 Thread Barnett, Brian W.
OK. So when running Tomcat as a service, I go into the Configure Tomcat
application and make the setting on the Java tab under Java Options. I'll
try that.

Thanks,
Brian


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 4:50 PM
To: Tomcat Users List
Subject: RE: Where'd catalina.sh go in 5.5.x ?


 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
 Subject: RE: Where'd catalina.sh go in 5.5.x ?
 
 Does it mean all the .sh, .bat, .properties, .xml, etc., files are not 
 needed?

Only the .bat and .sh files are missing from the .exe version.  The others
are all there, in their appropriate directories.  The scripts are not needed
when Tomcat is run as a service.

 Currently, I only have five files in ../bin:

You'll have about two dozen with the .zip download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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

 
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]



Problems mixin getReader and getParameter

2005-10-04 Thread Mauricio Nuñez
Hi all,

I'm trying the following , with Tomcat 5.5.12 ( Also with 5.0.30 ) , 
and after reading the request.getReader(), the
request.getParameter(param) is unusable, returning null.

I'm trying setting a mark in the BufferedReader, but the result it's the
same.

Any hint?

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{

String line=null;
BufferedReader br = request.getReader();
br.mark(4096);
while((line=br.readLine())!=null)
{
System.out.println(TBK:+line);
}
br.reset();
request.getRequestDispatcher(close).forward(request,response);
}

TIA

Mauricio Nuñez


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



Re: Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
Nope, never heard of that one.  I'll see if I can figure out how to get 
at that type.



andy gordon wrote:

David, 

Just in case you haven't done this yet, have you checked to see if the environment variable shows up as a catalina:type=Environment MBean? if so you should be able to access it. Hope this helps. 


- andy gordon

David Kerber [EMAIL PROTECTED] wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:





Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?


Thanks,
Dave
 





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



Tomcat Threads hanging in read()

2005-10-04 Thread Eric Durand
Hello,

I am using Tomcat 4.1.29, with Coyote HTTP Connector.
After a few hours of uptime, I get an error on the log
telling that all threads are busy. The workload is not
high on the server.
Getting a dump of Tomcat Threads I see that most of
them are stuck in a read() method on the socket:

TP-Processor104 daemon prio=5 tid=0x005730b0
nid=0x1d38c00 runnable [f42f3000..f42f5b20]
at
java.net.SocketInputStream.socketRead0(Native Method)
at
java.net.SocketInputStream.read(SocketInputStream.java:129)
at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:777)
at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:807)
at
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:158)
at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:742)
at
org.apache.coyote.Request.doRead(Request.java:457)
at
org.apache.coyote.tomcat4.CoyoteInputStream.readBytes(CoyoteInputStream.java:197)
at
org.apache.coyote.tomcat4.CoyoteInputStream.read(CoyoteInputStream.java:154)
at
java.io.DataInputStream.readFully(DataInputStream.java:266)
at
java.io.DataInputStream.readFully(DataInputStream.java:242)
at
ServletHandler$ServletForwardCommand.execute(ServletHandler.java:376)
at
ServletHandler.doPost(ServletHandler.java:191)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Doing a netstat -a on the server shows me a growing
number of sockets in ESTABLISHED state sitting there.
 
I see no way I can in the servlet setup a timeout on
the read() on the InputStream I get from the
HttpServletRequest, and cleanly stop the execution of
the doPost() method.
It seems that the connectionTimeout attribute for the
Connector is not meant for this.
I did not find any way to set the SO_TIMEOUT on the
socket since I don't have any access to it.
I did not find any Java property either to set this.

So I'm kind of stuck here. If any of you has any idea,
thanks for your help.

Eric.




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
if you are using 5.5x you can look at the mbean with jmxproxy which is part of 
the manager app.

David Kerber [EMAIL PROTECTED] wrote:Nope, never heard of that one. I'll see 
if I can figure out how to get 
at that type.


andy gordon wrote:

David, 
 
Just in case you haven't done this yet, have you checked to see if the 
environment variable shows up as a catalina:type=Environment MBean? if so you 
should be able to access it. Hope this helps. 
 
- andy gordon

David Kerber wrote:
If I'm reading it correctly, according to the docs, I should be able to 
set an environment variable in server.xml, like the built-in example:




Unfortunately, I can't get this to work; I can't read in simpleValue, or 
the ones I really want to do when they are defined in server.xml. But I 
have no problems when I put them into the application's web.xml; they 
come in just fine using the InitialContext stuff from the docs. Is 
there something extra I need to do to make them visible from server.xml?

Thanks,
Dave
 




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




-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort.