Re: [Resin-interest] Using Google id's with Resin

2011-09-25 Thread Jeff Schnitzer
How are you getting the person's real name out of GAE's UserService? I don't see that. Maybe this is just something you get with Android auth? The short answer is to use OpenID (and OAuth to get permission on extra fields). But there is a problem with this - if you have a database full of

Re: [Resin-interest] Resin no longer deploys my war

2011-06-08 Thread Jeff Schnitzer
...? May I ask how the WAR is created? Have you compared checksums between where it is created and where it is deployed so it isn't messed up in some transfer? /Mattias Jeff Schnitzer wrote (2011-06-07 02:49): ... FWIW, a simple stripped-down war file does deploy.  So presumably it's something

Re: [Resin-interest] Resin no longer deploys my war

2011-06-07 Thread Jeff Schnitzer
to the finest level.  Resin would appear to start, but nothing was loaded or deployed. The culprit was declaring / using static method calls as my services and beans. Keith On 06/06/2011 05:49 PM, Jeff Schnitzer wrote: Seriously, I've done *nothing* special.  I downloaded resin, unzipped

Re: [Resin-interest] Resin no longer deploys my war

2011-06-05 Thread Jeff Schnitzer
, Jeff Schnitzer j...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat.  But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing

Re: [Resin-interest] Resin no longer deploys my war

2011-06-03 Thread Jeff Schnitzer
versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com  wrote: Also, what does the /resin-admin webapps tab say

[Resin-interest] Resin no longer deploys my war

2011-05-24 Thread Jeff Schnitzer
I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3)

Re: [Resin-interest] Resin no longer deploys my war

2011-05-24 Thread Jeff Schnitzer
] Resin no longer deploys my war Date: Tue, 24 May 2011 01:52:04 -0700 From: Jeff Schnitzer j...@infohazard.org I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can

Re: [Resin-interest] Resin no longer deploys my war

2011-05-24 Thread Jeff Schnitzer
On Tue, May 24, 2011 at 8:11 AM, Paul Cowan co...@caucho.com wrote: Hi Jeff, We fixed a few bugs related to deployment in 4.0.17 and 4.0.18, perhaps the behavior you're expecting has changed. I tested by simply overwriting ROOT.war with a different ROOT.war and didn't have any issues. Resin

Re: [Resin-interest] Resin no longer deploys my war

2011-05-24 Thread Jeff Schnitzer
On Tue, May 24, 2011 at 2:04 PM, Scott Ferguson f...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't

[Resin-interest] Classloader problems with hibernate validator and slf4j

2011-02-10 Thread Jeff Schnitzer
So... now that the hibernate validator is part of the resin appserver classpath, there seems to be some sort of strange conflict with slf4j. java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29)

Re: [Resin-interest] Duplicate singletons

2010-08-11 Thread Jeff Schnitzer
On Wed, Aug 11, 2010 at 1:08 PM, Scott Ferguson f...@caucho.com wrote: Jeff Schnitzer wrote: There seems to still be a problem with singletons exposed as hessian services.  I can create a test project if necessary, but I'm seeing this behavior in two separate applications: 1) Create

[Resin-interest] Duplicate singletons

2010-08-10 Thread Jeff Schnitzer
There seems to still be a problem with singletons exposed as hessian services. I can create a test project if necessary, but I'm seeing this behavior in two separate applications: 1) Create a @Singleton bean 2) Give the bean a @Startup @PostConstruct method that initializes some data 3) Give the

Re: [Resin-interest] Message driven bean woes

2010-07-20 Thread Jeff Schnitzer
On Tue, Jul 20, 2010 at 12:21 PM, Scott Ferguson f...@caucho.com wrote: Thanks. It's a timing issue in CanDI. The jms:FileQueue was added to a lazy-init which wasn't being evaluated when the #{delivery} was processed. The fix will be in the next snapshot. Cool. If you get to a point where

Re: [Resin-interest] Message driven bean woes

2010-07-20 Thread Jeff Schnitzer
a message doesn't produce calls on my Listener. It seems to produce some sort of spin-loop inside Resin. Jeff On Tue, Jul 20, 2010 at 1:17 PM, Jeff Schnitzer j...@infohazard.org wrote: On Tue, Jul 20, 2010 at 12:21 PM, Scott Ferguson f...@caucho.com wrote: Thanks. It's a timing issue in CanDI

Re: [Resin-interest] Message driven bean woes

2010-07-20 Thread Jeff Schnitzer
) On Tue, Jul 20, 2010 at 4:42 PM, Scott Ferguson f...@caucho.com wrote: Jeff Schnitzer wrote: By the way, I was able to work past the lazy-init issue (presumably) by using this block instead:       cfg:MessageBeanConfig               cfg:classtest.DeliveryListener/cfg:class

Re: [Resin-interest] Message driven bean woes

2010-07-20 Thread Jeff Schnitzer
}/destination /ejb-message-bean Without the jms:JmsConnectionFactory/ deployment will produce an error something like: 'javax.jms.ConnectionFactory' with name 'null' is an unknown JMS resource. Thanks, Jeff On Tue, Jul 20, 2010 at 6:13 PM, Scott Ferguson f...@caucho.com wrote: Jeff Schnitzer

[Resin-interest] svn?

2010-06-21 Thread Jeff Schnitzer
I haven't been able to connect to the Resin svn server for a while... did something move? loa:Resin jeff$ svn up svn: Can't connect to host 'svn.caucho.com': Operation timed out loa:Resin jeff$ svn info Path: . URL: svn://svn.caucho.com/resin/trunk Repository Root: svn://svn.caucho.com

[Resin-interest] Qualifier not working on 4.0.6

2010-05-30 Thread Jeff Schnitzer
I'm making good progress getting SubEtha running on 4.0.6, but now I seem to have a strange and self-contradictory error: [10-05-30 11:24:11.854] {main} org.subethamail.core.queue.InjectListener.outboundQueue: javax.enterprise.inject.UnsatisfiedResolutionException: Can't find a bean for

[Resin-interest] NPE in EjbInjectionTarget

2010-05-29 Thread Jeff Schnitzer
Trying to get SubEtha running on Resin 4.0.7, I'm getting a strange exception on startup: java.lang.NullPointerException at com.caucho.ejb.server.EjbInjectionTarget.newInstance(EjbInjectionTarget.java:273)

[Resin-interest] Resin CanDI on GAE?

2010-05-12 Thread Jeff Schnitzer
I'm retrofitting CDI into the part of my app that runs on Google Appengine (as opposed to the part that runs on Resin). I just saw Reza's comment on this blog entry: http://java.dzone.com/articles/weld-101-runs-gae What are the prospects for CanDI on GAE? Thanks, Jeff

Re: [Resin-interest] Question about Resin 4.0.6

2010-05-07 Thread Jeff Schnitzer
I doublechecked the spec and the current Resin behavior is the proper behavior. I don't think this behavior has changed in the spec, so the old behavior was a bug. You can't use the empty operator to test for the existence of fields (or methods). As to the rationale for the spec... it does make

Re: [Resin-interest] Question about Resin 4.0.6

2010-05-07 Thread Jeff Schnitzer
You might want to take a look at a project I created several years ago that works pretty much like this. I still find it occasionally useful, although most of my frontends are GWT and javascript these days: http://tagonist.tigris.org/ It lets you use JSP files as controllers but keeps your Java

Re: [Resin-interest] Sending log4j logs to the web apps log folder

2010-04-02 Thread Jeff Schnitzer
to using SLF4j as the Resin logging interface.  It's a very thin API that is an extremely powerful aggregator of log information.   (*Chris*) On Fri, Apr 2, 2010 at 12:57 PM, Jeff Schnitzer j...@infohazard.org wrote: I'm pretty sure that it's possible to configure any possible combination

Re: [Resin-interest] 4.0.0 on osx deploy problem

2010-03-21 Thread Jeff Schnitzer
FWIW, Resin on OSX seems to work fine despite the error messages. Jeff On Sat, Mar 20, 2010 at 6:12 AM, Jon Stevens latch...@gmail.com wrote: Yes, I can't remember what the solution was. =( Sorry! jon On Sat, Mar 20, 2010 at 2:16 AM, Rick Mann rm...@latencyzero.com wrote: John, did you

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Jeff Schnitzer
I know that Jon has spent many, many days debugging and tuning JBoss Cache on a production cluster, so I'd endorse his review, despite the brashness. Jeff On Thu, Dec 17, 2009 at 3:37 PM, Jon Stevens latch...@gmail.com wrote: DO NOT USE JBOSS CACHE. Pile of shit. ehcache + terracotta (yes,

Re: [Resin-interest] support spatial queries in amber

2009-12-16 Thread Jeff Schnitzer
It's worth mentioning that Hibernate works great as a JPA provider for Resin. I haven't tried it, but there's this: http://www.hibernatespatial.org/ Jeff On Wed, Dec 16, 2009 at 9:25 AM, Scott Ferguson f...@caucho.com wrote: Riccardo Cohen wrote: I really would like to know what is the

Re: [Resin-interest] packaging EB3 application with Resin

2009-11-16 Thread Jeff Schnitzer
As a longtime J2EE developer, let me suggest that life is far more pleasant if you abandon the atrocious EAR packaging morass and build your applications in one or more WARs. Just put all your classes in WEB-INF/classes (ejbs, servlets, etc), make sure you have WEB-INF/classes/META-INF/beans.xml

Re: [Resin-interest] Controlling pool size for stateless EJBs

2009-11-03 Thread Jeff Schnitzer
Thanks. Now that any bean can be given @TransactionAttribute and injection, the only point to using @Stateless seems to be pooling. Jeff On Tue, Nov 3, 2009 at 9:59 AM, Scott Ferguson f...@caucho.com wrote: Jeff Schnitzer wrote: Is it possible to control the pool size for stateless EJBs? I

[Resin-interest] Controlling pool size for stateless EJBs

2009-11-02 Thread Jeff Schnitzer
Is it possible to control the pool size for stateless EJBs? I think I'm looking for something equivalent to ejb-message-bean message-consumer-max=2 but for ejb-session-bean. The docs say that session beans are pooled, but I don't see anything about how to configure this pool. The use case is

[Resin-interest] Tabulation evil

2009-10-27 Thread Jeff Schnitzer
This is really just a point of curiosity... What editor are you guys using at Caucho? I've noticed all the code is formatted using a bizarre combination of tabs and spaces, like this: 1 indent = 4 spaces 2 indents = 1 tab 3 indents = 1 tab + 4 spaces 4 indents = 2 tabs 5 indents = 2 tabs + 4

[Resin-interest] web-app pointing to war files directly?

2009-10-21 Thread Jeff Schnitzer
Is it possible to configure a host web-app to use a war file somewhere on the filesystem, or is the only way by defining a web-app-deploy directory and copying my war into it? Ie, is it possible to do something like web-app id= document-directory=my.war ? Thanks, Jeff

Re: [Resin-interest] 4.0.2 schedule

2009-10-12 Thread Jeff Schnitzer
Thanks for the update. Would it be helpful if we filed bugs against trunk? I tried it out a week ago but pretty quickly ran into a problem (@Named @RequestScoped didn't show up in the request attrs). I figured you guys were still working on it and probably didn't need the distraction, but if it

[Resin-interest] Building from trunk

2009-09-25 Thread Jeff Schnitzer
I just tried ant dist from trunk and got an UNRESOLVED DEPENDENCIES error from Ivy: [ivy:retrieve] :: problems summary :: [ivy:retrieve] WARNINGS [ivy:retrieve] io problem while parsing ivy file: http://repository.jboss.com/maven2/jboss/jboss-common/2.2.1/jboss-common-2.2.1.pom: Impossible

Re: [Resin-interest] Building from trunk

2009-09-25 Thread Jeff Schnitzer
:18 PM, Jeff Schnitzer j...@infohazard.org wrote: I just tried ant dist from trunk and got an UNRESOLVED DEPENDENCIES error from Ivy: [ivy:retrieve] :: problems summary :: [ivy:retrieve] WARNINGS [ivy:retrieve]  io problem while parsing ivy file: http://repository.jboss.com/maven2/jboss

Re: [Resin-interest] character encoding

2009-09-24 Thread Jeff Schnitzer
I wrote up a quick blurb on the issues surrounding character encoding on the Resteasy list recently: http://sourceforge.net/mailarchive/message.php?msg_name=540eb7210908281001r6aafaa55u78615debb704e4c1%40mail.gmail.com The short of it is that, if you can get away with it, you should set UTF-8

Re: [Resin-interest] Noob question: Do I have to restart?

2009-09-22 Thread Jeff Schnitzer
Hot deployment works fine for me out of the box, but note that Resin doesn't immediately reload the webapp when web.xml or the war changes. You have to actually request a page, then the app will reload. If you change JSP files they are picked up immediately, no reload necessary. Jeff On Tue,

Re: [Resin-interest] Cookie security over SSL (https) connections

2009-09-09 Thread Jeff Schnitzer
Why aren't you creating the cookies with setSecure(true) in the first place? If you have tons of legacy code that sets cookies, why not create a Filter that wraps HttpServletResponse (there is a convenient HttpServletResponseWrapper for this), intercepts the addCookie() method calls, and calls

Re: [Resin-interest] Class load order in a WAR

2009-08-24 Thread Jeff Schnitzer
On Mon, Aug 24, 2009 at 12:17 PM, Scott Fergusonf...@caucho.com wrote: The WEB-INF/classes should work.  You could also modify the class- loader in app-default.xml (although that's generally not recommended.) Oops, heh. Apparently I had overlooked my own debug message; it was working.

[Resin-interest] Resin 4.0.1 doesn't like Hibernate

2009-08-04 Thread Jeff Schnitzer
Resin 4.0.1 doesn't seem to work with Hibernate anymore. When Hibernate is configured as the JPA provider, attempts to inject an EntityManager produce this: [09-08-04 15:54:16.283] {http--8080-5} FINES [InjectManage] InjectManager[] bind(EntityManager,[...@javax.enterprise.inject.current()]) -

[Resin-interest] @Named doesn't work in 4.0.1

2009-08-04 Thread Jeff Schnitzer
Another bug report: It appears that @Named isn't working in 4.0.1. When I create an @ApplicationScoped @Named(foo) object, it doesn't seem to be available in EL. This is also demonstrated by the index.jsp of the sample app:

[Resin-interest] SubEtha mailing list server now released on Resin

2009-06-04 Thread Jeff Schnitzer
We have just released v2 of the opensource SubEtha mailing list server, rearchitected to use Resin and CanDI. We are very, very happy with the new design that CanDI enables. Here it is: http://www.subethamail.org/ Thanks Scott, Steve, Emil, and the rest of the Caucho team (and great meeting

[Resin-interest] Can user threads call ejb methods?

2009-06-02 Thread Jeff Schnitzer
Is there a problem calling ejb methods from user-started threads inside the resin container? Yes, I know the ejb spec says that applications shouldn't start threads, but part of the spec is lame. The SubEtha mailing list server relies on an SMTP processing library which starts its own threads

Re: [Resin-interest] Can user threads call ejb methods?

2009-06-02 Thread Jeff Schnitzer
Nevermind, the problem was something else. Calling a find() method on an EntityManager outside of a transaction scope, then calling an EJB which has a transaction scope causes all manner of havoc when the EJB tries to write to the database. Jeff On Tue, Jun 2, 2009 at 5:33 PM, Jeff Schnitzer j

Re: [Resin-interest] Hessian Remote Refs

2009-05-15 Thread Jeff Schnitzer
H... let me ask the question that ScottH is, I think, trying to ask: What is the best way to make multiple hessian calls within a single session? Ie, calls to a @SessionScoped object will get the same instance. Jeff On Fri, May 15, 2009 at 2:06 PM, Scott Ferguson f...@caucho.com wrote:

[Resin-interest] Hessian remoted objects with @ApplicationScoped break

2009-05-15 Thread Jeff Schnitzer
ScottH and I have spent some time (fortunately, well-spent time in a pub with wifi and a deep reserve of Magners) trying to figure out why one of our @ApplicationScoped objects seems to have several instances in the container. The problem seems to be when you declare the servlet-mapping in

[Resin-interest] Custom hessian serialization in Resin

2009-05-14 Thread Jeff Schnitzer
Is there a way to register custom hessian serializers in Resin? Resin4 can't serialize java.net.URL :-( Thanks, Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Custom hessian serialization in Resin

2009-05-14 Thread Jeff Schnitzer
like Hessian is calling the URL(String) constructor and passing in a null. Jeff On Thu, May 14, 2009 at 11:27 AM, Jeff Schnitzer j...@infohazard.org wrote: In addition, we're having problems serializing a byte[]. One additional complication is that if we turn com.caucho.hessian logging

Re: [Resin-interest] Authentication using hessian

2009-05-12 Thread Jeff Schnitzer
unit tests :-( Any ideas? Thanks, Jeff On Fri, May 8, 2009 at 8:03 PM, Jeff Schnitzer j...@infohazard.org wrote: Hessian auth doesn't seem to work.  I have a small test project here: http://scratchmonkey.googlecode.com/svn/resin4/programmatic_auth The client code is very simple

[Resin-interest] Authentication using hessian

2009-05-08 Thread Jeff Schnitzer
Hessian auth doesn't seem to work. I have a small test project here: http://scratchmonkey.googlecode.com/svn/resin4/programmatic_auth The client code is very simple: public static void main(String[] args) throws Exception { HessianProxyFactory fact = new

[Resin-interest] Trunk broken?

2009-05-07 Thread Jeff Schnitzer
Should trunk compile? I'm switching to 4.0.0, but still... resin-compile: module: [copy] Copying 127 files to /Users/jeff/Documents/workspace/Resin/modules/resin/classes [javac] Compiling 2524 source files to /Users/jeff/Documents/workspace/Resin/modules/resin/classes [javac]

Re: [Resin-interest] Limiting session to a single IP for a given session_id

2009-05-06 Thread Jeff Schnitzer
According to the security researchers who took over the torpig botnet and analyzed the data (read the PDF, it's good), some ISPs still change IP addresses a lot... more than once an hour: http://www.cs.ucsb.edu/~seclab/projects/torpig/ Jeff On Wed, May 6, 2009 at 9:09 AM, Scott Ferguson

Re: [Resin-interest] Eclipse Plugin

2009-04-17 Thread Jeff Schnitzer
Oh no... I hate this discussion. Let's just say that there are plenty of people on both sides of the fence. I have a fair amount of experience with Maven on big complicated projects and loathe it intensely. This thread is worth reading, you can search for my name to see my long-winded comment:

[Resin-interest] Remoting without XML service declarations

2009-03-31 Thread Jeff Schnitzer
Is it possible to expose EJBs (or POJOs) as remote-able objects without declaring them in XML (ie, resin-web.xml)? The Resin Remoting docs (http://caucho.com/resin/doc/resin-remoting.xtp) make it look like I must declare a servlet-mapping for every bean I wish to expose. Is there an annotation I

Re: [Resin-interest] Remoting without XML service declarations

2009-03-31 Thread Jeff Schnitzer
On Tue, Mar 31, 2009 at 11:08 AM, Scott Ferguson f...@caucho.com wrote: Hmm.  It might be possible to use the new Servlet 3.0 annotations for that purpose (we haven't implemented it yet.) The original idea was that exposed URLs shouldn't generally be automatic.  In other words, having a

Re: [Resin-interest] Why must we define beans in xml?

2009-03-30 Thread Jeff Schnitzer
Thanks... you're absolutely right. Works great. Jeff On Thu, Mar 26, 2009 at 9:40 AM, Scott Ferguson f...@caucho.com wrote: On Mar 25, 2009, at 7:27 PM, Jeff Schnitzer wrote: Is there a compelling reason why we must define our beans and services in resin-web.xml?  Will this continue

[Resin-interest] Why must we define beans in xml?

2009-03-25 Thread Jeff Schnitzer
Is there a compelling reason why we must define our beans and services in resin-web.xml? Will this continue to be the case going forward in Resin 4.0? It's a minor nuisance, yes, but... it's nice to add a class to the project, annotate it with @Service or @Stateless or whatever, and have it

Re: [Resin-interest] Perf Issues

2009-03-22 Thread Jeff Schnitzer
There are profiling/memory allocation tracking tools for C and Linux... if you're seeing what looks like a memory leak, it might be worth looking into. They're quite a bit more complicated than the equivalent java tools but years ago in another life I got a lot of mileage out of Rational Purify,

Re: [Resin-interest] Perf Issues

2009-03-21 Thread Jeff Schnitzer
It's also worth mentioning that for serious application tuning, there is no substitute for a good profiling tool. In the past I have had great results with JProfiler: http://www.ej-technologies.com/products/jprofiler/overview.html I've even gone so far as to take one node in a production

Re: [Resin-interest] Remote programmatic authentication

2009-03-19 Thread Jeff Schnitzer
Answering my own question #1, I found the HessionProxyFactory.setUser() and setPassword() methods. Great. #2 is still a mystery to me. I'm in a servlet, how do I programmatically tell the container to log me in with a username and password? Thanks, Jeff On Thu, Mar 19, 2009 at 2:08 PM, Jeff

Re: [Resin-interest] Remote programmatic authentication

2009-03-19 Thread Jeff Schnitzer
Thanks, but that is not what I'm looking for. The document describes building an authentication source and using automatic authentication (aka web.xml security constraints). The problem is, j2ee automatic authentication is nearly useless. It doesn't allow for autologin cookies nor does it allow