[Resin-interest] Quercus Question
I was thinking it's possible to do something like this in a php file: ?php if((include '../www/_header.jsp') == 'OK') { echo 'OK'; } ? Where the www folder has a path-mapping entry in the resin.xml. It includes the file, but the file isn't processed by the JSP engine, so I literally see strings like ${param.var} in the output of the call to test.php. How do I include a .jsp in from a .php but get the JSP engine to process it before it returns? I know I could do something like: include( 'http:///www/_header.jsp') but then cookies are lost as the client is the php engine, not the browser. Is it possible to reuse the JSP code from within the PHP environment? Is there a link someone could shoot me that explains this? Thanks, Aaron ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] getting webservicecontext in a cxf soap servlet
I did as described in the CXF wiki (http://wiki.caucho.com/CXF), except that I ran the code generator (wsdl2java) tool to start from an existing wsdl. Here is the config: servlet-mapping url-pattern=/CarteMusique/* servlet-class=ms.CarteMusiqueWSAction protocol uri=cxf:/ /servlet-mapping Here is the full code of a small sample : http://www.architectedulogiciel.fr/download/tmp/testws.zip Scott Ferguson wrote: Riccardo Cohen wrote: 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 ? How are you configuring the service in Resin? It looks like we'll need to do a little bit of magic to make it work, but I need to make sure I'm looking at it the same way you're using it. -- Scott Thanks for any suggestion. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- 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
Re: [Resin-interest] Quercus Question
The silence is deafening, so I guess I was completely wrong-headed in thinking you could call a .jsp as in include from a .php? Bummer, I was hoping that was part of the benefit of having php-based apps running under full blown Resin, instead of Quercus in stand alone mode. Thanks, Aaron On 8/12/2010 1:36 AM, Aaron Freeman wrote: I was thinking it's possible to do something like this in a php file: ?php if((include '../www/_header.jsp') == 'OK') { echo 'OK'; } ? Where the www folder has a path-mapping entry in the resin.xml. It includes the file, but the file isn't processed by the JSP engine, so I literally see strings like ${param.var} in the output of the call to test.php. How do I include a .jsp in from a .php but get the JSP engine to process it before it returns? I know I could do something like: include( 'http:///www/_header.jsp') but then cookies are lost as the client is the php engine, not the browser. Is it possible to reuse the JSP code from within the PHP environment? Is there a link someone could shoot me that explains this? 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
Hi Scott, 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. the only new entry in the log on restart in the jvm-default.log is this: 06:44:16.969] {main} ProResin[id=] started in 81883ms WarningService: Stopping Resin because ping did not complete in time. [07:13:56.772] {resin-shutdown} ProServer[id=,cluster=app-tier] stopping Shutdown Resin reason: HEALTH Almost the same is showing up in watchdog-manager.log: [2010/08/13 07:13:56.816] Watchdog received warning from Resin[1,pid=32039]: Stopping Resin because ping did not complete in time. [2010/08/13 07:13:58.579] Watchdog detected close of Resin[,pid=32039] exit reason: HEALTH (exit code=8) [2010/08/13 07:13:58.579] Watchdog starting Resin[] It's really strange, though, that it happens almost exactly every 30 minutes. The behavior didn't occor with 4.0.7 or previous versions. Best regards, --- Jan. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest