MBean/Tomcat ClassNotFound

2006-08-09 Thread José Luis Martínez-Avial
Hi, I’m trying to deploy a Mbean in a web app. When I create the MBean, the next exception is throwed: javax.management.ReflectionException: null nested exception is java.lang.ClassNotFoundException: es.tid.puzzle.framework.jmx.agente.ControladorServicios java.lang.ClassNotFoundException:

Re: getRealPath and war file

2006-08-09 Thread Romain Quilici
Mikolaj Rydzewski wrote: Romain Quilici wrote: However, Tomcat creates automatically a directory under webapps to contain war file contents, so I am wondering if Tomcat is using the newly generated directory to load the application(1st case) or the war file (2nd case). In the first case

Re: getRealPath and war file

2006-08-09 Thread Mikolaj Rydzewski
Romain Quilici wrote: My pb is more to write in a given directory(must be accessible with a url), than to read. And I would prefer this directory to be located in my webapp. Use directory outside webapp and then map it with alias, or some kind of dispatcher servlet/filter. It'll help you to

How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread Ach
I entered below section in my web.xml because of not repeating %@ taglib=blaBla in each jsf page: jsp-config taglib taglib-urihttp://java.sun.com/jsf/core/taglib-uri tablig-location/tld/myfaces_core.tld/taglib-location /taglib taglib

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread jeusdi
Hello, mmm, I've compiled and linked and configured mod_jk with Apache 2.0 correctly, but I doesn't work correctly. Mmm, if I access to http://192.168.1.2 explorer continues show me the code of my JSP, but if I access to http://192.168.1.2/ecommerce/login.jsp it shows me correctly the JSP

Re: How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread David Smith
The taglib-location element is relative to the context as in /WEB-INF/tld/myfaces_core.tld --David Ach wrote: I entered below section in my web.xml because of not repeating %@ taglib=blaBla in each jsf page: jsp-config taglib taglib-urihttp://java.sun.com/jsf/core/taglib-uri

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread David Smith
It's a difference of path. To Apache, the ecommerce webapp is the root of your site, but Tomcat does not see it that way. Tomcat only recognizes the ROOT webapp as the document root. Rename the ecommerce webapp to ROOT (notice the all caps), deleting the original ROOT directory under

Initializing session in a Filter

2006-08-09 Thread Mohsen Saboorian
Hi, I have a filter (for /*) in which I'm caching something in the session. Here is a piece of code: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { HttpServletRequest req = (HttpServletRequest) request; HttpSession session =

Session sharing accros subdomains?

2006-08-09 Thread Madhur K Tanwani
I've a main website hosting domain domain.com. There are links on this page that point to response servers, which is a subdomain rs.domain.com. The problem is that when a user signs in on the domain.com and clicks on any link his session is not available on rs.domain.com. I see that this

workers.properties

2006-08-09 Thread D. Salemink Klikstudio
Does anybody have experience setting up the workers.properties file to serve mmbase through apache? -- D. Salemink Zomerdijkstraat 1-11079WX Amsterdam +31207726869 +31651611510 Nieuwe media cursussen http://www.klikstudio.net Webdesign en hosting http://www.klikstudio.nl

Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-09 Thread Tomas Hulek
The default Tomcat installation is prone to session hijacking. I would appreciate help how to fix it. The problem is that the session-id generated under HTTP (eg. for any JSF page) is caried over to authenticated confidential pages under HTTPS. Thus the session ID can be easily sniffed under

APR build under Win32 (Visual Studio) - undefined symbols

2006-08-09 Thread Christoph P. Kukulies
I'm trying to build the APR dll under Windows XP. I unpacked them in directories apr apr-iconv apr-util I started the aprutil.dsw file and was able to build apr-1.lib without a hitch. But building libapriconv.dll I'm getting undefined symbols: Linking... Creating library

Re: How to define a local TLD in web.xml (DRY principle!!!)

2006-08-09 Thread Ach
Thanks It works now. I have a syntax error in tags too! -- View this message in context: http://www.nabble.com/How-to-define-a-local-TLD-in-web.xml-%28DRY-principle%21%21%21%29-tf2077762.html#a5725676 Sent from the Tomcat - User forum at Nabble.com.

Hot code replace

2006-08-09 Thread Ulath
hi, i am trying to use eclipse with tomcat (myeclipse plugin) but when i change one of my class (JSF backing beans) i get Hot code replace failed - Scheme change not implemented error, so i need to restart tomcat each time what could i do to enable hot code replacement? regards... --

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread jeusdi
So, What must I change in my configuration files. I want that I access to 192.168.1.2 appear my login.jsp. I'm very stressed. I have a feeling I do all right. I understant it. my login.jsp is located in /usr/local/tomcat/webapps/login.jsp -- View this message in context:

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread David Smith
You can't place a jsp in /usr/local/tomcat/webapps. Tomcat does not make that location available to the client. You originally had a ecommerce webapp with a login.jsp file you wanted to access at the top level. I recommended you rename the webapp 'ecommerce' to 'ROOT' and reconfigure apache

webapp under domein

2006-08-09 Thread D. Salemink Klikstudio
Hello, I'm trying to install a web- app under domain name. I've managed to the point where i get the url www.mydomain.com/webapp out of the tomcat webapp directory. My problem is that every other domain on the server now also points to the webapp directory. How can I solve this? Ive put mount

Re: Session sharing accros subdomains?

2006-08-09 Thread Almir Kazazic
hy , I think that your problem is on the client side. session is maintained through cookies (well you know what i mean server discriminates session based on cookies and stores data somowhere on server) and your client will never send cookie to different server (in some cases maybe it will work

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread Mark Eggers
There are a lot of issues here, mostly having to do with how you've structured your virtual hosts. However, I think the following should get you up and running quickly. In your VirtualHost directive, add the following line: DirectoryIndex index.html index.html.var login.jsp That should bring

Re: mod_jk log level and logging issues

2006-08-09 Thread Rainer Jung
Hi, thanks for the feedback. Good info! fredk2 schrieb: issue 1: With mod_jk 1.2.15 i set my jk log level: JkLogFile logs/mod_jk.log #JkLogLevel info JkRequestLogFormat %w %V %U %s %T %B %H %m While switching to 1.2.18 I read in the fine manual that the default

Re: Mod_jk balancing, session problem

2006-08-09 Thread Rainer Jung
Hi, Artur schrieb: - does it happen in times, when you get errors in the mod_jk-log? Does it happen at all times, or do you have peaks at special times? I can't figure it out, when this happens, but there isn't any special moment I can observe. It happens randomly. There isn't any error

Re: mod_jk log level and logging issues

2006-08-09 Thread fredk2
Hi Rainer: Many thanks for your answers (and fast!). Why do you expect a 404 in case Tomcat is down? If the request matches mod_jk JkMount config, it should try to send to tomcat and the result would be some 50X? What I meant to say was that when previously you might have had a missing

Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8
Hello, I currently have a JSP application under Tomcat that uses an object created when Tomcat starts up. The object is created using a class that implements ServletContextListener and I can call the object from my JSPs. All is well. Originally, I thought I could have one of these objects per

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Pid
put it in a database? 0 8 wrote: Hello, I currently have a JSP application under Tomcat that uses an object created when Tomcat starts up. The object is created using a class that implements ServletContextListener and I can call the object from my JSPs. All is well. Originally, I

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Lung Chan
check jndi ressources On 8/9/06, Pid [EMAIL PROTECTED] wrote: put it in a database? 0 8 wrote: Hello, I currently have a JSP application under Tomcat that uses an object created when Tomcat starts up. The object is created using a class that implements ServletContextListener and I can

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Ryan O'Hara
How can I create a single object when Tomcat starts up and access that object from multiple web apps? Thanks, Matt Have you added listener and listener-class tags in each applications' web.xml? Ryan - To start a new

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8
I did, but then I get more than I get one object created for each application. I literally just stumbled a mention of a crossContext setting in Tomcat, but I'm still trying to figure out if that will help here. On 8/9/06, Ryan O'Hara [EMAIL PROTECTED] wrote: How can I create a single object

RE: Re: How to call beforeSessionDestroyed of SessionListener

2006-08-09 Thread Umesh Kudtarkar
Anyone with other suggestions ? -Original Message- From: Umesh Kudtarkar [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 2:23 PM To: Tomcat Users List Subject: RE: Re: How to call beforeSessionDestroyed of SessionListener Hi Moises, Actually I am not trying to call it. I am

Re: Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8
Pid, I'm sure this is a stupid question but...what? I don't follow. I can store the object in a database? I'm limited to SQL Server. Does that matter? On 8/9/06, Pid [EMAIL PROTECTED] wrote: put it in a database? 0 8 wrote: Hello, I currently have a JSP application under Tomcat that

Re: Modifying saved URL from j_security_check

2006-08-09 Thread Gregor Schneider
Hi Mark, something really, really strange is happening here: As you suggested, I've subclassed org.apache.catalina.authenticator.FormAuthenticator, patched the Authenticators.properties in catalina.jar, however, my own Authenticator is not being used. Strange though, since if I delete my jar

RE: How to call beforeSessionDestroyed of SessionListener

2006-08-09 Thread Umesh Kudtarkar
Thanks David. I will give it a try. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 11:24 AM To: Tomcat Users List Subject: Re: How to call beforeSessionDestroyed of SessionListener There is also a lesser known interface

mod_jk 1.2.15 connectivity failing errorcode =13

2006-08-09 Thread hari168
I am using Tomcat 5.5 , Apache 1.3.27 and Mod_JK 1.2.15.. Connectivity is failing with following error message in mod_jk.log file [error] jk_init::mod_jk.c (2039): Initializing shm:${APACHE_HOME}/logs/jk-runtime-status errno=13 Please any one suggest, how i can dig this issue.. -- View

Re: Tomcat Book Recommendation?

2006-08-09 Thread Filip Hanik - Dev Lists
I would say you don't need a book. The tomcat reference and usage docs are excellent, and then you have a gazillion tutorials online Filip M. Goodell wrote: Hello, Are there any text books / reference information about Tomcat on the maket that are considered to be the must haves ???

Dynamically Determining the Web App

2006-08-09 Thread Kohn, Robert M.
Dear Friends, I have two web apps that are identical except for their root directory (and context entry in server.xml). Is there any way of determining from within a servlet which one is actually running? Or, alternatively, is there a way of retrieving values from the context section of

Re: mod_jk 1.2.15 connectivity failing errorcode =13

2006-08-09 Thread Filip Hanik - Dev Lists
hari168 wrote: I am using Tomcat 5.5 , Apache 1.3.27 and Mod_JK 1.2.15.. Connectivity is failing with following error message in mod_jk.log file [error] jk_init::mod_jk.c (2039): Initializing shm:${APACHE_HOME}/logs/jk-runtime-status errno=13 Please any one suggest, how i can dig this issue..

Re: Dynamically Determining the Web App

2006-08-09 Thread Hassan Schroeder
On 8/9/06, Kohn, Robert M. [EMAIL PROTECTED] wrote: I have two web apps that are identical except for their root directory (and context entry in server.xml). Is there any way of determining from within a servlet which one is actually running? ServletContext.getServletContextName() should do

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-09 Thread Mark Thomas
Tomas Hulek wrote: The default Tomcat installation is prone to session hijacking. I would appreciate help how to fix it. This is a more general http problem with a well known solution. Do everything over https. Mark - To

Re: Hot code replace

2006-08-09 Thread Darryl Miles
Ulath wrote: i am trying to use eclipse with tomcat (myeclipse plugin) but when i change one of my class (JSF backing beans) i get Hot code replace failed - Scheme change not implemented error, so i need to restart tomcat each time what could i do to enable hot code replacement? What IDE

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-09 Thread Kim Albee
It's a fundamentally bad security scheme to use the session-ID as the identifier for your users. Might be straight forward, but architecturally a bad choice if you *really* want a secure area. Kim :-) On 8/9/06, Tomas Hulek [EMAIL PROTECTED] wrote: The default Tomcat installation is prone to

Re: Modifying saved URL from j_security_check

2006-08-09 Thread Mark Thomas
Gregor Schneider wrote: Hi Mark, something really, really strange is happening here: As you suggested, I've subclassed org.apache.catalina.authenticator.FormAuthenticator, patched the Authenticators.properties in catalina.jar, however, my own Authenticator is not being used. snip/ I

JDBCRealm with Simple Servlet Filter

2006-08-09 Thread Dhiraj Ramakrishnan
Hello, I have configured a SimpleServletFilter to act as my authentication filter, i want it to do certain things after the authentication has failed. My application is being authenticated using a TOMCAT JDBC Realm. The authentication scheme is BASIC. I noticed that the filter is

Re: getRealPath and war file

2006-08-09 Thread Romain Quilici
Mikolaj Rydzewski wrote: Romain Quilici wrote: My pb is more to write in a given directory(must be accessible with a url), than to read. And I would prefer this directory to be located in my webapp. Use directory outside webapp and then map it with alias, or some kind of dispatcher

Re: getRealPath and war file

2006-08-09 Thread Dies Koper
Hello Romain, Is there no way you can use the temporary working directory (javax.servlet.context.tempdir)? I don't know what pushing inside a client browser means, but as you mentioned the files are temporary, this sounds like the place to put them.. Also, you won't need to worry about