Re: [Resin-interest] 4.0.27 Pro, Ubuntu, mod-caucho - disable php handling for all but selected sites

2012-05-08 Thread Daniel López
An alternative that might be no that performant would be to use mod_proxy/mod_rewrite to send requests to Resin instead of using mod_caucho. That would let you choose the locations/directories that you want to forward to resin and which ones you want to process in Apache. Not sure if mod_caucho

Re: [Resin-interest] Multiple servers defined on a cluster now(4.x) requires Resin Professional

2012-03-20 Thread Daniel López
them to the powers-that-be ;). D. El 16/03/2012 17:54, Scott Ferguson escribió: > On 03/16/2012 01:43 AM, Daniel López wrote: >> Hi there, >> >> We are using Resin 3 and we even though we are not using real >> clustering, we used the possibility of defining various

[Resin-interest] Multiple servers defined on a cluster now(4.x) requires Resin Professional

2012-03-16 Thread Daniel López
Hi there, We are using Resin 3 and we even though we are not using real clustering, we used the possibility of defining various servers inside a cluster, so we could share a configuration file among various hosts, like this: -- . ... -

Re: [Resin-interest] Questions about webapp config

2012-03-15 Thread Daniel López
Hi Rick, AFAIK, there is no standard name for the "file servlet" so that simple way is a no-no. One alternative container-independent way even though a tad more complex would be to use something like UrlRewriteFilter to forward requests appropriately. It allows fine grained control and it's co

Re: [Resin-interest] Resin 4.0 Questions

2011-10-19 Thread Daniel López
Moreover, if you are separating things per server, you already have the server.id EL variable to play with. For example, we use it to define different home directories per server instante: so... or something like that should work fine. S! D. El 19/10/2011 19:44, Aaron Freeman escribió: >

Re: [Resin-interest] Application Clusters and job-sheduling

2011-09-29 Thread Daniel López
Hi again, We are using Quartz scheduler and it has clustering capabilities so the jobs scheduled there are supposed to be run just in one of the hosts, if configured appopriately. I have not been able to test it yet, but given that we'll have different machines, cron is not an option for us and

Re: [Resin-interest] Resin 4 Configuration Sanity Check

2011-09-28 Thread Daniel López
Hi Alan, Given that Resin by default creates work and tmp directories in the WEB-INF directory of each application, it might be risky to 3 instances of the application fiddling with those files, so it might be better to separate those directories per instance. I haven't done so with 4.X so I ca

Re: [Resin-interest] Something interesting for People using Resin with Oracle

2011-09-28 Thread Daniel López
Good to know Alan, thanks. Who would have thought servers accessing databases might be located in dedicated machines? Way to go, Oracle! :D S! D. El 28/09/2011 16:19, Alan Wright escribió: > At the same time as upgrading to Resin 4 we are upgrading to Oracle 11gR2. > > Starting/stopping resin

[Resin-interest] Resin Eclipse Plugin not stopping instances

2011-07-15 Thread Daniel López
Hi, I upgraded the Resin-Eclipse plugin to latest version and all my Resin 3.X servers are broken and I can't re-create them as the plugin just allows me now to add Resin 4.X servers. Auch! :) D. ___ resin-interest mailing list resin-interest@caucho.

Re: [Resin-interest] ROOT.war not expanded when explicitly defined in resin.xml

2011-03-22 Thread Daniel López
AFAIK, you either place the .war file in webapps or define the directory using an explicit web-app tag, but having both is not necessary and just seems to confuse Resin. S! D. El 22/03/2011 1:03, Keith Fetterman escribió: > I am experiencing a problem in resin 4.0.16 where resin is not expandin

Re: [Resin-interest] Resin Eclipse Plugin not stopping instances

2011-02-17 Thread Daniel López
Hi, I did some more testing and the Resin plugin is able to stop Resin 3.1.5 instances, so it appears to be a compound problem between the 4.0.14-15 releases not being closed properly and the plugin not detecting it. S! D. El 15/02/2011 11:48, Daniel López escribió: > Hi again, > I upgra

[Resin-interest] Resin Eclipse Plugin not stopping instances

2011-02-15 Thread Daniel López
ort already bound" error. In spite of that, there could be a correlation between both of them as it is quite suspicious for both to happen at the same time :). Cheers! D. El 09/02/2011 12:40, Daniel López escribió: > Good to know, thanks. I'll wait for the 4.0.15 then. > > S!

Re: [Resin-interest] Resin Eclipse Plugin just working with Resin Pro?

2011-02-09 Thread Daniel López
Good to know, thanks. I'll wait for the 4.0.15 then. S! D. El 07/02/2011 18:45, Scott Ferguson escribió: > Daniel López wrote: >> Hi, >> >> I reinstalled Eclipse and started from scratch and after installing the >> latest Eclipse plugin from www.caucho.com/eclips

[Resin-interest] Resin Eclipse Plugin just working with Resin Pro?

2011-02-07 Thread Daniel López
Hi, I reinstalled Eclipse and started from scratch and after installing the latest Eclipse plugin from www.caucho.com/eclipse, when I try to create a new Server I'm no longer given the option of specifying a local version, but it insists I have to download a Pro version, put my email address t

Re: [Resin-interest] Upgrading from 4.0.12 to 4.0.14 with ojdbc failes

2011-01-28 Thread Daniel López
Hi, Not sure what your problem is, but this syntax works for me in my tests with Resin 4.0.14 --- jdbc:oracle:thin:@db.server.com:port:db db-user db-pass --- S! D. El 28/01/2011 10:22, Halvor Utby escribió: > Hi, > > I'm trying to upgrade

Re: [Resin-interest] Access server id param within resin.xml

2010-10-01 Thread Daniel López
With Resin 3.1.5, ${server.id} is working for me. S! D. El 01/10/2010 1:32, Stargazer escribió: >When a server is started with the command line option "-server foo" > how can I access the variable holding "foo" within resin.xml? > I want to use it to define a set of conf dirs, like: > > > >

Re: [Resin-interest] pb with cxf / soap

2010-07-21 Thread Daniel López
with Axis 1.4. Where we cannot use > Hessian, that is ;-) > > > > Riccardo Cohen wrote (2010-07-20 20:21): >> I still think that 29Mb/66jars is too much when you need only soap. >> Axis 2 is also very heavy, axis 1.4 is 2Mb only :) ... bad choice >> probably because too ol

Re: [Resin-interest] pb with cxf / soap

2010-07-20 Thread Daniel López
Hi there, Not sure if it helps, but I have an application that exposes a SOAP interface using CXF 2.1.9 and I just tested it to work under Resin 3.1.5 and it fails under Resin 4.0.7 with a weird error. It's just a proof-of-concept application that I have, so I can't tell how well the combinatio

Re: [Resin-interest] Custom datasource implementation

2010-04-13 Thread Daniel López
Scott Ferguson escribió: > d.lo...@uib.es wrote: >> Hi Scott, >> >> Thanks for the pointer. I managed to get it to work, more or less, >> using the new way: >> -- >> >> ... >> >> -- >> and the old "bean" way: >> -- >> >> org.leaf.ConnectionPoolDataSource >> java:comp/en

[Resin-interest] Custom datasource implementation

2010-04-08 Thread Daniel López
Hi there, For some reason, I would like to be able inside Resin a datasource implementation other than Resin's, C3P0 for example, and I have been unable to find in the documentation how would one configure it. The examples that I found use the tag, which does not seem to have an attribute to

[Resin-interest] Thoughts about memory-leak detection strategies?

2010-04-08 Thread Daniel López
Hi there, I've come across a new feature that is to be implemented in Tomcat 6 to help detect/prevent/notifiy the too common OOME (permGen) problems and as we don't use Tomcat but do use Resin, I wondered if the Caucho guys have considered adding a similar mechanism to Resin. As the article po

Re: [Resin-interest] PermGen problems installing Confluence

2010-03-29 Thread Daniel López
for the suggestion, Daniel. I did in fact try, just like that. Set it > to 256m. > > On Mar 29, 2010, at 01:00:36, Daniel López wrote: > >> How have you increased the MaxPermGen of your resin install? >> Just ot make sure you have not increased the size of the watchdog &

Re: [Resin-interest] PermGen problems installing Confluence

2010-03-29 Thread Daniel López
How have you increased the MaxPermGen of your resin install? Just ot make sure you have not increased the size of the watchdog instead of the "real" instance, which happened to me at the beginning :). Confluence has so many JSPs and other internal classes that it needs quite a chunk of memory for

Re: [Resin-interest] Resin: configuration for a jms client]

2010-01-17 Thread Daniel López
Hi Scott, I'm still using 3.1.*, is JMS in those versions production ready? Documentation is a bit scarce so I'm not sure what to think of it. :) D. Scott Ferguson escribió: > Daniel López wrote: >> Hi there, >> >> Nobody uses Resin's JMS from external appli

[Resin-interest] Resin: configuration for a jms client]

2010-01-15 Thread Daniel López
Hi there, Nobody uses Resin's JMS from external applications? Do people use other JMS solutions inside Resin? I'll stick with OpenJMS for now, but as we already have Resin nodes installed, I thought it would have been intesting to use them and remove one service. The scarce documentation an

[Resin-interest] Resin: configuration for a jms client

2010-01-12 Thread Daniel López
While we are talking about JMS configuration, how can one access the JMS queues on a Resin server from an external client? I've seen the documentation regarding accessing the queues defined in the same server, from JSPs, using dependency injection etc. but I have been unable to find how to acce

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Daniel López
From your logs, one can see that the POST request to Apache is answered with a redirect (301) to http://localhost:889/register/ and that's why there is a second request to the same URL with GET. That second one makes it through Apache and gets to Resin which answers it. So, it is Apache that is

Re: [Resin-interest] Resin 3.1: resin:import of jvm-args

2009-11-30 Thread Daniel López
Hi, This works with 3.1.9 but careful as it does not work with 3.1.5, I think it was a new feature introduced later in 3.1 or a bug fixed. We had to go back to 3.1.5 due to JPA issues and had to change our scripts accordingly. In our case, we use different Node.conf configuration files that im

Re: [Resin-interest] Resin V Glassfish

2009-11-30 Thread Daniel López
Hi, From my personal point of view, I prefer Resin because its philosophy suits me better as it is more open and flexible, meaning it usually accomodates different ways of doing things. OTOH, GlassFish is for me more "opinionated" and it tries to guide you on how you should do things, so if y

[Resin-interest] resin-admin, one watchdog with different config files

2009-11-09 Thread Daniel López
Hi there, We are migrating all of our instances to Resin 3.1.5 (3.1.8-9 have a JPA bug that prevents us to go the latest version) and I've been asked by our admins if it would be possible to have ONE monitor to see all the different applications in all the different instances. The different in

Re: [Resin-interest] Security Manager and JSPs

2009-08-27 Thread Daniel López
Hi, The only server where we have to limit such things is still using a Resin 2.1.17, but in case it helps, that's how we do it: We configure the application to have the work directory in a specifc place (.../ServerX/work/) and then... ... global restricted permissions for everyone. ... all pe

Re: [Resin-interest] java.lang.IllegalStateException: Connection null was not closed.

2009-07-22 Thread Daniel López
.pQd escribió: ... >> Just to verify that's not the problem, you could pass the DBPool as >> parameter to the tread and perform the DBPool.getConnection() inside the >> thread's run method, so the connection is retrieved in the same method >> where you are sure it is going to be returned. > > i

Re: [Resin-interest] java.lang.IllegalStateException: Connection null was not closed.

2009-07-21 Thread Daniel López
One potential source of problems might be the start/run sequence of the Thread. If, for some reason, the run() method was never called then the Thread's connection would never be called. The "problem" with this theory is that I cannot think of any reason for start() to fail to call run()... :).

[Resin-interest] Resin 4.0.0 embedded

2009-05-22 Thread Daniel López
Hi there, Now that version 4.0.0 has been released, I've tried again to integrate Resin into the Wembed project, which uses embedded container engines to facilitate automatic testing and I can happily confirm that version 4.0.0 works fine :). Just some minor issues: .- The default logging leve

Re: [Resin-interest] Amber (JPA) Table Indexes

2009-03-31 Thread Daniel López
Isn't that something one would do at the database level? D. Scott Hernandez escribió: > Is there a way to hint to Amber that a column should be indexed? > > For example we will be doing a lot of queries like this: > > "Select u from User where u.isActive == true ..." > > And it would be nice i

Re: [Resin-interest] Perf Issues

2009-03-23 Thread Daniel López
If you suspect the problem lies in mod_caucho, another possible test would be to use see if using mod_proxy instead would prevent it from hapenning. Depending on your settings, that might be relatively simple and would allow you to discard mod_caucho easily. S! D. Rob Lockstone escribió: > On

Re: [Resin-interest] Change Port via web.xml

2009-03-10 Thread Daniel López
Hi, I'm not sure how the hoster came to told you that, but the web.xml file is the configuration for a specific application/context inside a host, and there can be several applications configured for a host, so it asolutely makes no sense configuring the host's port at the application level. I

Re: [Resin-interest] reverse proxy support like ProxyPass in apache?

2009-02-20 Thread Daniel López
Hi, Stargazer escribió: > I am experiencing server memory leaks in my http child processes. I > can't nail these down and they have been present for literally years, > always using mod_caucho. I fix them by limiting the requests they serve > in apaches httpd.conf - not ideal. Now I'm not pointi

Re: [Resin-interest] reverse proxy support like ProxyPass in apache?

2009-02-19 Thread Daniel López
.3.X) just require mod_proxy, newer versions (2.X) split the mod_proxy module in different modules, so you also need to enable mod_proxy_http, at least. Stargazer escribió: > Daniel López wrote: >> we >> have always used mod_proxy to communicate with the backoffice Resin >> instan

Re: [Resin-interest] reverse proxy support like ProxyPass in apache?

2009-02-19 Thread Daniel López
In our case, we still use Apache, due to other things we need, but we have always used mod_proxy to communicate with the backoffice Resin instances, instead of mod_caucho. Even if you finally migrate to Resin as front-end web server, you could try to move to using mod_proxy in the interim with

Re: [Resin-interest] Resin embedded issues

2009-01-14 Thread Daniel López
Scott Ferguson escribió: > bugs.caucho.com is really the best place to report these things. There you go: 0003251: Resin dependencies are broken for version 3.2.1 at the Caucho Maven 2 repository: http://bugs.caucho.com/view.php?id=3251 0003250: Quercus .jar published at the maven repository is

[Resin-interest] Cauch Maven Repository [was Resin embedded issues]

2009-01-13 Thread Daniel López
While we are at it, resin-quercus module seems to be missing some classes, as they are listed in META-INF/services/com.caucho.quercus.QuercusClass but they are missing in the resin-quercus.jar file. The missing classes include, at least: com.caucho.quercus.lib.pdf.PDF com.caucho.quercus.lib.dom.

[Resin-interest] Resin embedded issues

2009-01-13 Thread Daniel López
Hi, I'm trying to get a demo application to use Resin as embedded container. The application can be run successfully using Resin the usual way and it can also be run using Jetty as embedded container, so the application should be "fine". However, inside the application some action classes are l

[Resin-interest] Quercus + Web Services / Zend

2008-10-30 Thread Daniel López
Hi, I'm doing some experiments with Quercus and one of the things I wanted to do is accessing an already existing web service written in Java. I also tried implementing the experiments using Zend Framework, even though that failed, first with a problem I solved by upgrading to 3.1.7 and then w

Re: [Resin-interest] Re sin And Groovy

2008-10-14 Thread Daniel López
Hi, What we do is to use the Groovy scripts through the Java Scripting API during development and then compile them into class, if desired, for production. Accessing Groovy scripts is not too slow, after the first access, if you are careful not to throw the ScriptingEngine object after each acc

Re: [Resin-interest] Re sin 3.15, Groovy and hotswap

2008-10-14 Thread Daniel López
Hi there, The same thing is happening to me, and the combined with the Ant Groovyc task not checking if the file has been modified or not and always recompiling, it's quite a pain. However, if I'm not mistaken, I think hotswapping is "enabled" by Resin but provided by Java itself, so we might h

Re: [Resin-interest] Resin 3.1 and pid-file

2008-08-19 Thread Daniel López
Hi there, Not sure if it helps, but what we did is add a JVM-specific argument in resin.conf: -Dresin.node=NodeName and then use that in our shell scripts to help determine the specific PID for each resin node (through some ps + grep magic). So far we have stayed with 3.0 due to some differenc

Re: [Resin-interest] Configuring a JNDI javax.mail.Session for a TLS SMTP server (gmail) (3.1.5)

2008-07-29 Thread Daniel López
Re-sending. Is there any documentation about using an Authenticator with a mail resource? Is there is no Authenticator provided with Resin that is compatible javax.mail.Authenticator? Should I provide my own custom class? S! D. Daniel Lopez escribió: > Thanks Scott, that got me closer :). Now

[Resin-interest] Resin server/cluster information included in session cookie

2008-07-22 Thread Daniel López
Hi, I am doing some research in order to set up various servers behind an Apacher server that is already working as a proxy. Apache now includes a mod_proxy_balance that I'm trying to use and it even includes some settings to be able to "stick" the sessions. However, in order to decide which s

[Resin-interest] Quercus + Scripting API memory issue [still present in Quercus 3.1.6]

2008-06-17 Thread Daniel López
ts in case the leak had been fixed in 3.1.6 and that explained the lack of response :). Cheers! D. Daniel López escribió: > Hi, > > Doing some tests with the application I use to test my framework, I seem > to have come across a memory leak in Quercus, or at least caused by t

[Resin-interest] Quercus + Scripting API memory issue

2008-05-28 Thread Daniel López
Hi, Doing some tests with the application I use to test my framework, I seem to have come across a memory leak in Quercus, or at least caused by the way I'm using it (through the scripting API and returning a String). Basically what the suspect operation does is perform a call to a PHP script

[Resin-interest] getRealPath returning wrong value

2008-04-30 Thread Daniel López
Hi there, We have a server running under Digital Unix, JDK 1.4 and Resin 3.0.21. Due to some problems with a library, the context is being restarted every hour, through a "touch web.xml", and it usually runs fine. However, this morning the server failed to restart appropriately, the whole inst

Re: [Resin-interest] Locking the EnvironmentClassLoader

2008-04-02 Thread Daniel López
Don Willis escribió: > ...Does anybody have a compelling argument why > having less memory would dramatically slow down Resin's class loading? Hi, Te only general reason I can think would be that the lack of memory is causing the GC to fire too often, so you have a situation where the JVM res

Re: [Resin-interest] small question about entity ejb

2008-03-10 Thread Daniel López
type, which means that the problem might be with the container managed transactions. S! D. Daniel López escribió: > AFAIK, using merge should not be necessary unless the entity has been > updated outside a "persistent context" and then needs to be synchronised > back w

Re: [Resin-interest] small question about entity ejb

2008-03-10 Thread Daniel López
AFAIK, using merge should not be necessary unless the entity has been updated outside a "persistent context" and then needs to be synchronised back with the DB contents. persist() is just for new entities so reading the docs, updating an entity inside a persistent context should require no acti

Re: [Resin-interest] TransformerException: org.xml.sax.SAXNotSupportedException - generate PDF

2008-02-20 Thread Daniel López
Hia, From the stacktrace, it seems that you are using Xalan as XSLT engine but Caucho's implementation as XML parser. It usually works better if you can either use Xalan with Xerces or Caucho's XLST engine + parser. Theoretically, mixing should work fine, but you have to get the right version

Re: [Resin-interest] 2008-02-11 snapshot

2008-02-12 Thread Daniel López
Knut Forkalsrud escribió: > Daniel López wrote: >> Knut, you seem to have a setup quite similar to ours, are you using 3.1 >> already or staying if 3.0? If you are using 3.1, are you experiencing >> similiar issues or is it just me? ;). >> > > We&#x

Re: [Resin-interest] 2008-02-11 snapshot

2008-02-11 Thread Daniel López
Hi, That would be me reporting :). Yeah, the different port in the end was a miunderstading, but had nothing to do with the bug itself. I have been unable/unwilling to try to reproduce it, as the machines where it happens is the production server itself, so I cannot do my tests there. The situ

Re: [Resin-interest] Resin 3.1 independent instances

2008-02-08 Thread Daniel López
Hi, Scott Ferguson escribió: > On Feb 7, 2008, at 9:27 AM, Daniel Lopez wrote: > >> Would then be the recommended way to work to set all watchdog ports on >> all resin.conf files to be the same one? I'm thinking that might be >> causing some of the issues as "side effect". > > It currently defau

[Resin-interest] Resin 3.1 independent instances

2008-02-07 Thread Daniel López
Hi all, Ever since I migrated from Resin 3.0 to 3.1 and watchdog process, I'm having different issues, that might be caused by my setup, but they are not consistent, hence my question here. I have 6 different Resin instances in my app. server, that I use to distribute the different application

[Resin-interest] Resin Embedded

2008-02-01 Thread Daniel López
I wanted to have a go at the Resin Embedded features, as I wanted to start some functional testing on a web application and including all jars in the classpath and calling: /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException {

Re: [Resin-interest] Resin 3.1.4: Old classloaders do not recycle resulting in OutOfMemory

2008-01-17 Thread Daniel López
Hi Ilya, As Scott said, no, those are not lame questions. Apart of a Resin bug, it is unfortunately quite common for some libraries to be badly prepared to live in a "nenewing classloader" environment, so they leave references behind etc. And some of them cannot be fixed easily by de applicatio

Re: [Resin-interest] snapshot (08/01/14): adding spring/webbeans and embedded resin

2008-01-14 Thread Daniel López
It sounds very interesting. On a side note, the link at the top of the page to the javadocs (ResinEmbed JavaDoc -> http://caucho.com/javadoc/com/caucho/resin/package.html) returns a 404. S! D. Scott Ferguson escribió: > The new snapshot should fix the build issues people have been > having.

Re: [Resin-interest] How to execute a standalone java client against resin-EJB 3.0

2007-10-23 Thread Daniel López
When you access a remote EJB from a client you usully need to provide some data so the client is actually able to locate the remote service, instantiate an appropriate context etc. InitialContext = new InitialContext(); is used when the defaults are fine for you (as when you are trying to conne

Re: [Resin-interest] Resin/Tomcat Common Authenticator

2007-10-10 Thread Daniel López
Thanks Mattias, I had thought about the subclassing option, but I had to try to see if there was some configuration option I had missed :). In any case, that will work fine, I believe. I'll be out of town for a week but when I go back I'll give it a go and let you know how it worked. Thanks ag

Re: [Resin-interest] Unable to prevent file access on ISP server

2007-10-02 Thread Daniel López
Resin to hang and not start, so I'm still not sure if the policy file is being applied or not. The fix might not be in the latest snapshot though. S! D. Daniel López escribió: > Hi Joey, > > I'm using this with Resin 2.1.17 and I just specify > -Djava.security.polic

Re: [Resin-interest] Unable to prevent file access on ISP server

2007-10-02 Thread Daniel López
Hi again, A quick test and indeed the jvm-arg seems to be ignored. Weird. D. Daniel López escribió: > Hi Joey, > > I'm using this with Resin 2.1.17 and I just specify > -Djava.security.policy=/path_to_file at the command line when executing > httdp.sh. > > Ho

Re: [Resin-interest] Unable to prevent file access on ISP server

2007-10-02 Thread Daniel López
Hi Joey, I'm using this with Resin 2.1.17 and I just specify -Djava.security.policy=/path_to_file at the command line when executing httdp.sh. However, if I'm not mistaken, with 3.1.2 you would need to specify it through the resin.conf file with ... -Djava.security.policy=/path_to_file ... at

Re: [Resin-interest] Unable to prevent file access on ISP server

2007-09-28 Thread Daniel López
Hi, I have this working with a previous version of Resin, but I think the problem might be that right now the way of specifying JVM parameters has changed, so your prolicy file is probably being applied to the watchdog process, instead of to the resin server. How are you specifying the policy

Re: [Resin-interest] Classpath problem

2007-09-10 Thread Daniel López
Janene McCrillis escribió: > I have a problem with my classpath that has me baffled. I'm using the > Apache commons libraries in a small servlet. I have the Apache commons > jar files in both my web-app library directory and also in my resin > library directory... Having the same library twice in

Re: [Resin-interest] Problem when restoring sessions with file-store - SOLVED

2007-09-05 Thread Daniel López
serialization process to rebuild some transient fields, and that was affecting how other classes in the same stream were being serialised, hence the misleading error message. Thanks for the suggestions and my apologies for the false alarm :). Cheers! D. Daniel López escribió: > Hi, > > We

Re: [Resin-interest] Problem when restoring sessions with file-store

2007-09-04 Thread Daniel López
Hi, Well, I was able to isolate the problem from the Resin handling of sessions, so it seems there's something wrong with my class and Java serialization. The class that is shown in the error is not causing the problem on its own, that's why my first standalone tests worked, but it is stored i

[Resin-interest] Problem when restoring sessions with file-store

2007-09-03 Thread Daniel López
Hi, I have some objects in a library that I'm using that are usually stored in the session. Up to now, everything worked fine but recently I decided to do some refactoring to update the version to Java 5 and I "basically" changed a member from being a Hashtable to being a Map (HashMap as imple

[Resin-interest] Not able to set init parameter in a database

2007-07-31 Thread Daniel López
Hi there, I was trying to migrate a Jira installation from Resin 3.0 to Resin 3.1 and I just found out I can no longer include init parameters in the database configuration, and that creates a problem as I need to specify the parameter SetBigStringTryClob to true. Before, I would use:

Re: [Resin-interest] class reloading / out-of-memory

2007-07-05 Thread Daniel López
I recently performed a check in one of our applications and what I found out was that many libraries we were using were not really "prepared" to be in a context that is restarted. They usually leak resources because they are developed thiking that they will be used in a JVM where a restart of t

Re: [Resin-interest] Application Memory Profiling

2007-06-12 Thread Daniel López
s is on Frank's blog: >> http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java >> >> >> >>> -Original Message- >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] Behalf Of Scott Ferguson >>> Sent: Monday,

[Resin-interest] Application Memory Profiling

2007-06-11 Thread Daniel López
Hi there, I was checking one of my web applications to see if I there was anything wrong with the framework we use, as I had fixed a small issue that could help with memory usage and I have found out some "symptoms" that I think might be related to Resin and/or the libraries, so I wanted to che

Re: [Resin-interest] app loaded twice?

2007-06-05 Thread Daniel López
Hi, How are you deploying the application and how are your resin.conf settings to configure it? I've seen things like that happen, for example, when having an app deployed in webapps and configured through an explicit mapping, as the auto-deploy feature of the webapp directory and the explicit

Re: [Resin-interest] Which webapp is misbehaving?

2007-03-27 Thread Daniel López
Hi John, If you decide to have a go with it, we have some scripts we use to handle the different instances that you might find interesting. All in all, we have ONE directory where Resin is fully installed and then we have various "instance directories", where each instance has a resin.conf fil

Re: [Resin-interest] (no subject)

2007-03-21 Thread Daniel López
You should check the configFactory class, as it seems it's causing a NPE due to not initialising correctly a File path. D. sksamuel escribió: > Noticed a couple of these in my logs on restart: ... > [07:13:07.565] Caused by: java.lang.NullPointerException > [07:13:07.565] at java.io.File.(File.

resin-interest@caucho.com

2007-03-11 Thread Daniel López
Hi, Something like this might help: http://tuckey.org/urlrewrite/ S! D. Serge Knystautas escribió: > You would have a servlet mapped to / and then call request.getPathInfo(). > Then you would need to manually split apart the dirs. > > -Original Message- > From: "John Steel" <[EMAIL PRO

Re: [Resin-interest] Resin plugin for Eclipse?

2007-03-08 Thread Daniel López
! D. Josh Rehman escribió: > On 3/7/07, Daniel López <[EMAIL PROTECTED]> wrote: >> We create the .project structure so it points to our build directories >> through virtual links (so the built artifacts do not end up in the >> "source" directory) and with that and

Re: [Resin-interest] Resin plugin for Eclipse?

2007-03-07 Thread Daniel López
Hi, Not the answer you are looking for, but I simply start Eclipse & Resin separately :). IDE's are already heavy enough and given the simplicity of configuring a context in resin (one line in res.conf unless you need something special) and starting the container, I don't find it really a prob

Re: [Resin-interest] Using XML escapes (e.g. ©) in resin.conf

2007-03-05 Thread Daniel López
Hi, resin.conf is an XML configuration file and © is not a valid XML reference, it is an HTML reference, so the error and the message are both correct. Instead of defining a local reference in XML etc. I would recommend simply using the alternative UTF-8 encoded syntax: © You can see how it wo

Re: [Resin-interest] handling site updates / redeployments

2007-02-11 Thread Daniel López
Hi, It might not be a very helpful hint, but one thing we have done is avoiding war files altogether, at least for our internal apps. We just use the exploded form and then we can update all the non-critical content without even a restart, but even if a restart has to occur, it is usually not

Re: [Resin-interest] Send 503 when servlet init is very long

2007-02-07 Thread Daniel López
Hi, Not sure if that would work for you or not, but another option would be to move that initial process to a background thread and then your app can check itself if the init has finished or not, and answer with a nicer message "initalisation in progress, please wait..." etc, rather than holdi

Re: [Resin-interest] Is there an easy way to do this? port

2007-02-02 Thread Daniel López
Jose Quinteiro escribió: Hi, As Jose, I would recommend having different instances for development and deployment. Even though Resin does a good job on separating contexts and detecting changes and restarting just the appropriate web app. You will still affect your deployment applications with

Re: [Resin-interest] Can servlets safely spawn threads?

2007-01-29 Thread Daniel López
Hi there, As some suggested on your blog entry, I think you are may be confusing EJBs with Servlets as there is a explicit rule preventing you from creating threads from EJB components but there is none that does the same with servlets. The only think is you have to be careful to respect the l

[Resin-interest] Simply.... thanks

2006-11-28 Thread Daniel López
Hi there, Just following my own advice* :), I would like to simply say thanks to the Caucho guys and all the helpful people on this list. I've been using Resin for many years, first for development, then with an easy license and now with the GPL version. We use it extensively at the universi

Re: [Resin-interest] Does Resin have a built-in Proxy Server?

2006-11-07 Thread Daniel López
ementation problems when we perform the stress tests, it is working great for us. S! D. Scott Ferguson escribió: > On Nov 6, 2006, at 2:10 AM, Daniel López wrote: > > >>Before we found out about that one, we developed our own ProxyFilter, >>instead of a servlet, with

Re: [Resin-interest] Does Resin have a built-in Proxy Server?

2006-11-06 Thread Daniel López
Before we found out about that one, we developed our own ProxyFilter, instead of a servlet, with a bit more complex URL mapping features, using regular expressions. We have done it to be able to integrate some back-end dynamic services with a site driven by SiteMesh, and so far it works pretty

Re: [Resin-interest] Ramdon class loader problem

2006-11-03 Thread Daniel López
Hi, That's basically what we do, restart the apps with a cron job periodically, as sooner or later when we upgrade things they tend to end up having OOMEs. So instead of waiting for them to happen, we just do a clean restart. Even if you have developed the application yourself, some of those

Re: [Resin-interest] Ramdon class loader problem

2006-11-03 Thread Daniel López
All I can say is that during development, when we reload the web applications many times, when the container is about tu run OutOfMemory it gives similar error messages to the ones you describe (classes not found that have already been used etc). In our case, it seems to be related to classload

Re: [Resin-interest] Resin 2.1 Timer thread

2006-10-30 Thread Daniel López
Hi, What I'm doing in a project is even more convoluted, what can I say? :), upon receiving the request, I start a quartz task to be run inmediately that sends a JMS message to the remote server that does the real task. This way you can return inmeditaly to take care of the response and if the

Re: [Resin-interest] Resin 2.1 Timer thread

2006-10-27 Thread Daniel López
Hi there, As long as you are careful and handle your threads properly, I've had no problems using Threads inside my web apps. I understand EJB containers are more strict on people not spawning threads but web containers don't usually have that many problems. In any case, sometimes what I do is

Re: [Resin-interest] Filters and jsp:include

2006-10-19 Thread Daniel López
iel Lopez Janariz ([EMAIL PROTECTED]) Web Services Centre for Information and Technology Balearic Islands University (SPAIN) --- [EMAIL PROTECTED] escribió: > --- Daniel López <[EMAIL PROTECTED]> wrote: > > >>Hi there, >> >>I&#

[Resin-interest] Filters and jsp:include

2006-10-16 Thread Daniel López
Hi there, I'm having a problem with servlet filters and requests accessed through jsp:include, but as it is my first attempt I'm not sure if I'm forgetting something or it's a Resin bug. Settings: At web.xml I have a filter defined as: ProxyFilter /ca/agenda/* INCLUDE R