[Resin-interest] getting webservicecontext in a cxf soap servlet
Hello I successfully wrote a soap web service with cxf (in resin 4.0.9) and I need to check the IP of the caller. I need the servlet context, and found some thread about this. I tried to add : @Resource public WebServiceContext wscontext; in the servlet, but have the error message : ms.CarteMusiqueWSAction.wscontext @Resource cannot find any matching resources with type='interface javax.xml.ws.WebServiceContext' in InjectManager[web-app:http://default] I suppose that something is missing but what ? Thanks for any suggestion. -- Riccardo Cohen Architecte du Logiciel http://www.architectedulogiciel.fr +33 (0)6.09.83.64.49 Membre du réseau http://www.reflexe-conseil-centre.org ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Wordpress Under Resin
I saw a wiki for running WordPress under Quercus 3.1.x -- is anybody out there successfully running WordPress under Resin 4.0.x? Thanks, Aaron ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 4.0.9 release
Jan Kriesten wrote: Hi Scott, It's not simply the ping because the restart isn't happening here. I'm working on improving the logging on both the Resin and Watchdog to get better information about this. that would be helpful. Funny thing is, it only happens on one of the machines. The configuration is the same on both, the only difference is a) in the number of virtual hosts (104 to 2) b) the number of provdided database jndi connections (57 to 5) Maybe this helps? The extra information for the logging will help (I'm hoping to get a snapshot today with the additional logging.) I'm not sure about the difference. Both of those do have associated timers/alarms, so if there's a timer problem, it's more likely to show up with the server with more. -- Scott Best regards, --- Jan. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. matt On Aug 11, 2010, at 7:00 AM, Aaron Freeman wrote: I saw a wiki for running WordPress under Quercus 3.1.x -- is anybody out there successfully running WordPress under Resin 4.0.x? Thanks, Aaron ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Ah, thanks for the confidence builder. Based on your feedback we will take the time to try and get it working with a straight Resin install then. I didn't want us to spin our wheels if someone else failed at doing so. :) Thanks, Aaron On 8/11/2010 12:02 PM, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. matt On Aug 11, 2010, at 7:00 AM, Aaron Freeman wrote: I saw a wiki for running WordPress under Quercus 3.1.x -- is anybody out there successfully running WordPress under Resin 4.0.x? Thanks, Aaron ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
On Aug 11, 2010, at 10:02:21, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. I had serious problems under certain versions of Resin. I finally settled on 4.0.6 as having a sufficiently-working Quercus and not having other issues (not sure I remember exactly what those were). Prior to 4.0.6, WordPress titles would not render across most of the site. I run Resin directly, no Apache in front. -- Rick ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 4.0.9 release
Jan Kriesten wrote: Hi Scott, It's not simply the ping because the restart isn't happening here. I'm working on improving the logging on both the Resin and Watchdog to get better information about this. that would be helpful. Funny thing is, it only happens on one of the machines. The configuration is the same on both, the only difference is a) in the number of virtual hosts (104 to 2) b) the number of provdided database jndi connections (57 to 5) I've put up a new snapshot. On a restart, you should see additional logging information in both the watchdog-manager.log and the jvm-default.log that should help narrow this down. -- Scott Maybe this helps? Best regards, --- Jan. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Duplicate singletons
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 a @Singleton bean 2) Give the bean a @Startup @PostConstruct method that initializes some data 3) Give the bean a @HessianService annotation 4) Call the bean via hessian 5) Observe that the data isn't initialized Is this javax.ejb.Singleton or javax.inject.Singleton? (I still can't believe the JavaEE spec allows that confusion.) I've filed it as http://bugs.caucho.com/view.php?id=4175 This was a problem long ago in 4.0.0 (with the equivalent annotations at the time) but I thought it was fixed sometime later. I could be wrong about that though. The old workaround was to have the hessian endpoint on a different bean which itself injects the singleton. Because of all the spec changes and some big internal changes we needed to make to pass the TCK, it's very possible that fix no longer applies. -- Scott Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Ah, I faintly remember your posts about that now. Good to know. We will start with the latest and greatest and work our way backward stopping at 4.0.6, if necessary. :) Aaron On 8/11/2010 2:03 PM, Rick Mann wrote: On Aug 11, 2010, at 10:02:21, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. I had serious problems under certain versions of Resin. I finally settled on 4.0.6 as having a sufficiently-working Quercus and not having other issues (not sure I remember exactly what those were). Prior to 4.0.6, WordPress titles would not render across most of the site. I run Resin directly, no Apache in front. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Let me know how it goes. I kinda wish you'd work back 'till you see the same problem, just so we can be sure it reproduces everywhere ;-) On Aug 11, 2010, at 13:29:04, Aaron Freeman wrote: Ah, I faintly remember your posts about that now. Good to know. We will start with the latest and greatest and work our way backward stopping at 4.0.6, if necessary. :) Aaron On 8/11/2010 2:03 PM, Rick Mann wrote: On Aug 11, 2010, at 10:02:21, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. I had serious problems under certain versions of Resin. I finally settled on 4.0.6 as having a sufficiently-working Quercus and not having other issues (not sure I remember exactly what those were). Prior to 4.0.6, WordPress titles would not render across most of the site. I run Resin directly, no Apache in front. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Duplicate singletons
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 a @Singleton bean 2) Give the bean a @Startup @PostConstruct method that initializes some data 3) Give the bean a @HessianService annotation 4) Call the bean via hessian 5) Observe that the data isn't initialized Is this javax.ejb.Singleton or javax.inject.Singleton? (I still can't believe the JavaEE spec allows that confusion.) I'm using javax.inject.Singleton. FWIW javax.ejb.Singleton doesn't seem to register beans with the manager. I don't know if that's correct or not. I've filed it as http://bugs.caucho.com/view.php?id=4175 Cool. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Ok so you want us to try getting it running on 4.0.9, then see if we can just drop it in 4.0.6 and 4.0.5 just to see what happens? Should be easy -- there shouldn't be any config changes on those minor releases -- if that's what you are after. -a On 8/11/2010 3:40 PM, Rick Mann wrote: Let me know how it goes. I kinda wish you'd work back 'till you see the same problem, just so we can be sure it reproduces everywhere ;-) On Aug 11, 2010, at 13:29:04, Aaron Freeman wrote: Ah, I faintly remember your posts about that now. Good to know. We will start with the latest and greatest and work our way backward stopping at 4.0.6, if necessary. :) Aaron On 8/11/2010 2:03 PM, Rick Mann wrote: On Aug 11, 2010, at 10:02:21, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. I had serious problems under certain versions of Resin. I finally settled on 4.0.6 as having a sufficiently-working Quercus and not having other issues (not sure I remember exactly what those were). Prior to 4.0.6, WordPress titles would not render across most of the site. I run Resin directly, no Apache in front. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Wordpress Under Resin
Oh, I find it a huge pain to install new versions, so I wasn't actually suggesting you do more work than you have to. You might find they all work well for WP, but I also run Java webapps, and have had issues there. I don't recall exactly why I settled on 4.0.6, but I do know I tried at least 4.0.7, if not also 4.0.8. I have not yet tried 4.0.9. On Aug 11, 2010, at 13:55:28, Aaron Freeman wrote: Ok so you want us to try getting it running on 4.0.9, then see if we can just drop it in 4.0.6 and 4.0.5 just to see what happens? Should be easy -- there shouldn't be any config changes on those minor releases -- if that's what you are after. -a On 8/11/2010 3:40 PM, Rick Mann wrote: Let me know how it goes. I kinda wish you'd work back 'till you see the same problem, just so we can be sure it reproduces everywhere ;-) On Aug 11, 2010, at 13:29:04, Aaron Freeman wrote: Ah, I faintly remember your posts about that now. Good to know. We will start with the latest and greatest and work our way backward stopping at 4.0.6, if necessary. :) Aaron On 8/11/2010 2:03 PM, Rick Mann wrote: On Aug 11, 2010, at 10:02:21, Matthew Serrano wrote: Aaron, I am successfully running WordPress 3.0 in Resin 4.0.7. It is behind Apache 2.2 with permalinks which took a while to configure mod_rewrite but otherwise it works great. I had serious problems under certain versions of Resin. I finally settled on 4.0.6 as having a sufficiently-working Quercus and not having other issues (not sure I remember exactly what those were). Prior to 4.0.6, WordPress titles would not render across most of the site. I run Resin directly, no Apache in front. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Possible memory leak in Resin 4.0.9
Hi Scott, I've applied the 4.0.10 snapshot and the Alarm issue went away. Thanks. But Resin consumed all memory after certain hours and resulted in a halt or restart. I did a jrockit flight recording and found there was a slow heap increase during various GCs. The recording file shows the objects in heap order by total size occupied descending as below: Class InstancesSize(bytes) Percentage%(%) com.caucho.config.inject.DependentCreationalContext 48,722,158 1,559,109,040 49.08 com.buysou.cms.managers.DefaultBeanManager 11,970,792 287,299,020 9.044 com.buysou.cms.managers.DefaultBeanReader 14,126,509 226,024,144 7.115 com.buysou.cms.utils.reflection.GenericReflectionProvider 11,970,802 191,532,840 6.029 char[] 1,792,936 160,800,482 5.062 (others omitted) Obviously the DependentCreationalContext eat up the heap. Note: DefaultBeanManager DefaultBeanReader GenericReflectionProvider are non singleton beans which were injected into other beans at Dependent context (should be GCed when request ends). Any ideas? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest