Re: java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
HI, Thanks for the reply, It is being working correctly all these days. Only once I got this error.After restarting the server worked fine. Only one time I got this error. But I have not done as you mentioned. I am very curious to know why is this suddenly came which was working all these

Setting up an HTTPS connection with tomcat 5.5.9

2005-10-05 Thread vineesh kumar
Hi, I am using tomcat 5.5.9 I hav o setup an https connection and i followed the configuration documentation in the apache tomcat site. But when I am using startup.sh,(yes! i am using an RHEL 4.0 host) the normal http is running but no https. How i can make it work] thanks in advance vineesh

RE: Problems mixin getReader and getParameter

2005-10-05 Thread Jean-Marc Marchand
According to the servlet's spec, the behavior of getParameter() is undefined if you consumed the payload first through getInputStream or getReader: If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via .getInputStream or

IIS - Tomcat - And Trailing /

2005-10-05 Thread Gregg D Bolinger
While IIS and Tomcat are working fine together, to access the webapp by utalizing a welcome file, a trailing / is required on the end of the URL. Is there a way to change that requirement? http://www.site.com/app/ - works http://www.site.com/app - desired to work Thanks Gregg

Re: Tomcat Alone or tomcat+IIS/Apache

2005-10-05 Thread Gregg D Bolinger
We required IIS for a CGI ecommerce solution that was required. Plug and Pay I think is the company we bought it from. I came in late on the project and haven't had a lot of time to mess with it. Does Tomcat support CGI bins utalizing non-java technology? Gregg On 9/30/05, Peddireddy Srikanth

RE: Tomcat Alone or tomcat+IIS/Apache

2005-10-05 Thread Caldarale, Charles R
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache Does Tomcat support CGI bins utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Add context to URI (Tomcat5/Apache2)

2005-10-05 Thread Benjamin Lerman
Hi all, I'm looking through docs and FAQs, but I cannot find how to do the following. I use Tomcat5 and Apache2. My apache server can accede the tomcat server, and things like: [uri:/manager/*] info=A scriptable management web application for the Tomcat Web Server. debug=0 in the

[Announce] Stylus Studio Offers Unprecedented Free Upgrade for Altova XMLSpy and Mapforce Users

2005-10-05 Thread Stylus Studio
[Announce] Customers who have purchased qualifying Altova XML Products, including Altova XMLSPY 2005 or Altova XMLSPY(r) 2004 (Enterprise or Professional Edition) or Mapforce(r) 2005 or Mapforce 2004 (Enterprise or Professional Edition), on or before October 1, 2005 can now obtain a free upgrade

manager for address-based virtual hosts?

2005-10-05 Thread Paul Singleton
Is there a version of the Manager app which handles all address-based virtual hosts in a Tomcat system? I've tried ManagerX which embraces name-based hosts but not the address-based ones which our SSL-enabled apps require... Paul Singleton -- No virus found in this outgoing message. Checked

Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Pigott, Paul
Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Darek Czarkowski
You have to specify the full path, this should not work under any of the webservers. DarekC On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under

Re: SSL question

2005-10-05 Thread Raueber Hotzenplotz
Hi Not exactly sure what you mean. Could you send me a snippet of your web.xml? That would be very nice. Thanks! Greetings from Vienna --- Yassine ELassad [EMAIL PROTECTED] wrote: 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

problem with setting path for config files

2005-10-05 Thread Raviteja Veerla
Hi all, I am having a problem with setting the path for config files. I am building a webservices in java using a 3rd party java API. this third party API requires few config files(xml files) to be present in the class path, so that they can read from those config files. i am developing these on

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
You may be able to use this instead: src=js/EdiHost.js IDEA will get pissed about it, but it should work (I know it does for images). It is nice, because you can rename your context, and not break your webapp. :) Larry On 10/5/05, Pigott, Paul [EMAIL PROTECTED] wrote: Greetings, I'm

Tomcat behind IIS - Session timeout is ignored

2005-10-05 Thread Tobias Meyer
Hello list, I have a problem with a tomcat 5.0.28 installation connected to IIS 6.0 (Windows 2003 server) with isapi_redirect.dll Everything is working well, except for the session timeout. The timeout is set to 60 minutes in the context's web.xml file (session-timeout60/session-timeout) which

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Hassan Schroeder
Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src=c:url value=/js/EditHost.js/ which has the added advantage of *not* being a relative path that'll

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
Yeah, i just hate the tag inatag / / stuff. Messy. ;-) Larry On 10/5/05, Hassan Schroeder [EMAIL PROTECTED] wrote: Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if

RE: Problems mixin getReader and getParameter

2005-10-05 Thread Mauricio Nuñez
El mié, 05-10-2005 a las 08:46 -0400, Jean-Marc Marchand escribió: According to the servlet's spec, the behavior of getParameter() is undefined if you consumed the payload first through getInputStream or getReader: If the parameter data was sent in the request body, such as occurs with an

RE: problem with setting path for config files

2005-10-05 Thread Sabitha
You can declare a variable in Catalina.sh with your path and append it to the classpath. -Original Message- From: Raviteja Veerla [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 11:26 AM To: tomcat-user@jakarta.apache.org Subject: problem with setting path for config files

Tomcat Manager, Session Statistics

2005-10-05 Thread Jean-Pierre Pelletier
Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? According to the documentation of Tomcat

Apache Tomcat Virtual Host question

2005-10-05 Thread Aria Bamdad
Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I

Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true

Re: an advice neede for use of encodeURL method...

2005-10-05 Thread Paul Singleton
jonas skrebys wrote: Hi everyone, could anyone help me understand what I am doing wrong... I want to put a session tracking into my jsp page. I use response.encodeURL method to rewrite all url in my page : a href=% response.encodeURL(/appName/myJSP.jsp?parameter = + value); % also I

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
As mentioned several times on the mailing list, path is no longer read from webapp/META-INF/context.xml. Try placing the context information in: engine-name\hostname\appname.xml under %CATALINA_HOME%\conf or %CATALINA_BASE%\conf if you're using multiple Tomcats served from one binary. If

Re: Context path changes in context.xml not working

2005-10-05 Thread David Smith
Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context

Balancer for redirect to other host

2005-10-05 Thread Jury Levykin
Hi, I want use balancer for redirect all requests from mydomain.org to www.mydomain.org. I try following configuration: -- server.xml -- ... Host name=www.mydomain.org appBase=webapps Context path= docBase=el-dimm reloadable=true/ /Host Host name=mydomain.org

Error: Connection was refused when attempting to contact

2005-10-05 Thread André
Hi people! I'm facing this error with my Tomcat (version 4.0.6) on Debian. It seems that is everything ok: I can access the JSP and servlets examples, the tomcat docs and others without any errors. The problem occurs when I attempt to run an application called maca_ad_web.war, that is available

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This is an app I'm migrating from SilverStream to Tomcat, and I don't want to change the url my users use to connect to it. David Smith wrote: Intended behavior.

Re: Deploying a webapp under two different URIs

2005-10-05 Thread Paul Singleton
Carsten Guenther wrote: I want to deploy the same webapp under two different URIs. I created two context descriptors like this: Context path=/a docBase=/home/user/myapp debug=0 privileged=false Logger className=org.apache.catalina.logger.FileLogger prefix=a. suffix=.txt

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Mark Thomas
Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a

Re: java.lang.ClassCircularityError

2005-10-05 Thread Shankar Unni
Jagadeesha T wrote: I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x:

sharing session information across tomcats on different machines

2005-10-05 Thread Mark
Is there any possibility for tomcats on separate machines to share session information. I am looking into load balancing a few tomcats with an apache in front of them. In other words, the setup will be internet - Apache(s) - Tomcats Is it possible for this type of scenario to exist, and sesion

RE: Re: java.lang.ClassCircularityError

2005-10-05 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Subject: Re: java.lang.ClassCircularityError There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4699981 According to the bug

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Jean-Pierre Pelletier
I suggest that the display of 30 - 40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: Mark Thomas [EMAIL

Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-05 Thread Jose Maria Ramirez Martinez
Hi, everybody I have the next problem: A servlet calls a non-servlet class, and this non-servlet class imports classes from a jar file, but the classloader does not find the class from the jar file (so when I call the servlet from an internet browser, I get a NoClassDefFoundException) But if

Re: custom session manager

2005-10-05 Thread Mark
This is about 90% of what I want. One of the features I want to put into my session manager is the ability to only have one open session per user. What I would like is to have a createSession method that takes in user and host. This way I could be relatively sure that the user could only have

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
I have never seen that the getRemoteUser method you are referring to returned something userful, or just something other then null. Taken in account different browsers, proxies, internet-cafes... I don't think it's possible. On the other hand, why do you need that? As a matter of security this

[5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-05 Thread Rick
Anyone know the proper way to handle these messages? I get piles of them in catalina.out Oct 5, 2005 3:00:23 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Tried adding the following line to the default

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Rainer Jung
Hi, documentation says: Display ... the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. Actual timeout times does not mean from now, but instead in general. It does not relate to when the session has been used last time. Since all sessions

Modjk and Tomcat 5.5.4 problem

2005-10-05 Thread John Martyniak
Has anyone had any problems with ModJK crashing the server? I haven't been able to fully debug yet, primarily because it doesn't update any logs to state there is a problem, and I can't reliably replicate the problem. I am using Apache 2.0.47, modjk 1.2.5 and tomcat 5.5.4 I think that it

end-of-lifecycle control for naming resources

2005-10-05 Thread Brian Moseley
i'm setting up an instance of javax.jcr.Repository as a naming resource like so: Resource name=jcr/cosmo type=org.apache.jackrabbit.core.jndi.BindableRepository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=etc/repository.xml

RE: Modjk and Tomcat 5.5.4 problem

2005-10-05 Thread Rick
We had an issue where it seemed like it would crash using mod_jk, the trouble was the connections were not letting go. By default, I think the timeout is infinite, so after setting the property: connectionTimeout, in the server.xml's connector descriptor as follows, Connector port=

isapi_redirector2.dll question

2005-10-05 Thread John MccLain
I have installed the IIS to Tomcat redirector on my windows XP pro machine and it works great. I took the same steps to install in on a win2k machine running IIS5.0, and it fails. Both machines have the same tomcat version (5.5.11) and both are configured identically. Here is the

Database connections aren't being released...

2005-10-05 Thread Richard Road Runner
I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time, the number of connections to

Re: custom session manager

2005-10-05 Thread Mark
basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not logout 4. Start browser up again 5. try and log in

[ANN] Tomcat sources moved to Subversion

2005-10-05 Thread Yoav Shapira
Hi, FYI, the Tomcat source code has been moved to Apache's Subversion (SVN) repository. The old CVS repositories are now locked down: they can still be used for checking out code, but no further work will be done in them. For details on how to work with SVN, please see

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave David Kerber wrote: I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
Did you try it in: $CATALINA_HOME/conf/engine-name/hostname/appname.xml? /mde/ --- David Kerber [EMAIL PROTECTED] wrote: Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave

RE: custom session manager

2005-10-05 Thread Caldarale, Charles R
From: Mark [mailto:[EMAIL PROTECTED] Subject: Re: custom session manager basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. Why? Some strange security issue? Resource consumption? An anti-DoS measure? -

RE: Database connections aren't being released...

2005-10-05 Thread Caldarale, Charles R
From: Richard Road Runner [mailto:[EMAIL PROTECTED] Subject: Database connections aren't being released... Over a period of time, the number of connections to the database continues to increase far beyond the possible number of users. This is usually a problem in the webapp, in that

precompiling JSPs -- how to resolve references normally resolved by apache?

2005-10-05 Thread ut9h-3pye
Hi, I am trying to get our JSPs to be precompiled as part of our ant build process to catch all syntax errors at compile time. The problem I have run into is that we are using apache + tomcat and we have set the following rules in apache httpd. conf: JkMount /servlets/* ajp13 JkMount

RE: Tomcat does not honor acceptCount configuration variable

2005-10-05 Thread Wei Zhao
Any tips on this issue? -Original Message- From: Wei Zhao [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 11:22 AM To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable Hi: I am resending this question

useBeans problem

2005-10-05 Thread Michael Pope
I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from

RE: useBeans problem

2005-10-05 Thread Caldarale, Charles R
From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: javax.servlet.ServletException: UserData

Re: useBeans problem

2005-10-05 Thread Michael Pope
Ok i found two other installations of JDK on the machine. I'm going to make sure that the only JDK i have installed on here is JDK1.5.0_p2 Michael Caldarale, Charles R wrote: From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to

Configuring https on apache tomcat 5.5.9

2005-10-05 Thread vineesh kumar
Hi all, I am trying to configure tomcat 5.5.9 with SSL support.I followed the instructions from apache site. But the problem is I can use the server ay 8080 but at 8443 it's not workin with https. I am not getting any exception.Everything is showing fine.but the port is not open.I think some one

Re: Context path changes in context.xml not working

2005-10-05 Thread Caldarale, Charles R
From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? I thought I remembered something about this, and went

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
On 10/6/05, Mark [EMAIL PROTECTED] wrote: basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not

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

<    1   2   3   4   5   6   7   8   9   10   >