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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

[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

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,

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

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

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

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

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

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

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

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

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

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

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

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

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:

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

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.

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:

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