[Resin-interest] Resin 3.1 interceptors
Hi, I've been reading the documentation about IoC and AOP and there are some inconsistencies in the examples and the docs, so I'm not sure how to do what I want. Here it goes: I am exposing some REST web services using Resin 3.1 tags. It works fine, but I'm using hibernate in my application, and I'd like my service implementations to work under the Open Session in View pattern and for that purpose I wanted to create interceptors for them. The problem is that Spring interceptors are out of the question, because the class instantiation is done by Resin itself. I checked the resin AOP examples, but the one I found that suited me does not work. Any ideas where can I look for solutions? Thanks in advance. Pablo. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] problems with quercus and mediawiki onresin-3.0.22
o.k. as son as 3.1 is out I'll give it a try on my server at home :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson Sent: 16 November 2006 16:50 To: General Discussion for the Resin application server Subject: Re: [Resin-interest] problems with quercus and mediawiki onresin-3.0.22 On Nov 15, 2006, at 9:18 AM, Alex Sharaz wrote: > Just tried to install mediawiki on a 3.0.22 system Thanks, I've just filed it as a bug report. Though, Quercus development and fixes are going into the 3.1.x tree (3.1.0 should be in 2-3 weeks), so we'll be encouraging Quercus users to move to 3.1.0 when it's available. -- Scott > > In webapps/wiki/WEB-INF I've got the following set up in resin- > web.xml. > > > > In the wii directory, I've also got a helloworld.php file. > > > > http://caucho.com/ns/resin";> > > > > > > jdbc:mysql://databases.hull.ac.uk:3306/comms_wiki > > fred > > fred > > > > > > > > > > servlet-class="com.caucho.quercus.servlet.QuercusServlet"> > > > > > > > > index.php > > > > > > The helloworld.php example works just fine. > > > > However, when I try running ./wiki/config to init the app, I get > > > > > > > > > > java.lang.NullPointerException > at > com.caucho.quercus.module.StaticFunction.analyzeArguments > (StaticFunction > .java:139) > at > com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215) > at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java: > 69) > at > com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java: > 90) > at > com.caucho.quercus.program.BlockStatement.analyze > (BlockStatement.java:13 > 2) > at > com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112) > at > com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254) > at > com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241) > at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229) > at com.caucho.java.gen.GenClass.generate(GenClass.java:120) > at > com.caucho.java.gen.JavaClassGenerator.generate > (JavaClassGenerator.java: > 273) > at > com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77) > at > com.caucho.quercus.page.PageManager.parse(PageManager.java:234) > at > com.caucho.quercus.page.PageManager.parse(PageManager.java:180) > at com.caucho.quercus.Quercus.parse(Quercus.java:546) > at > com.caucho.quercus.servlet.QuercusServlet.service > (QuercusServlet.java:21 > 7) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) > at > com.caucho.server.dispatch.ServletFilterChain.doFilter > (ServletFilterChai > n.java:106) > at > com.caucho.server.cache.CacheFilterChain.doFilter > (CacheFilterChain.java: > 209) > at > com.caucho.server.webapp.WebAppFilterChain.doFilter > (WebAppFilterChain.ja > va:173) > at > com.caucho.server.dispatch.ServletInvocation.service > (ServletInvocation.j > ava:229) > at > com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) > at > com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) > at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) > at com.caucho.util.ThreadPool.run(ThreadPool.java:442) > at java.lang.Thread.run()V(Unknown Source) > > > The database config statement is correct and I've checked that the > database e xists and has valid access rights set up for the > machine/userid I'm trying to run the wiki on > > Alex > > ** > *** > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ** > ***___ > 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* To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html *___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 2.1.7 and JNDI
> Date: Thu, Nov 16, 2006 at 02:22:18PM -0600 > Subject: Re: [Resin-interest] Resin 2.1.7 and JNDI > > Ahhh ha, > My example config is several years old but it has the JNDI example. I > was looking at the Resin 2.1.17 libs and see no instance of the > com.caucho.resources.rmi.RmiRegistry. Putting the rmi start into > web-app causes an error...unknown element resource > > I guess that it has never work for 2.x? Correct, the RmiRegistry is not available in 2.1. -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 2.1.7 and JNDI
Ahhh ha, My example config is several years old but it has the JNDI example. I was looking at the Resin 2.1.17 libs and see no instance of the com.caucho.resources.rmi.RmiRegistry. Putting the rmi start into web-app causes an error...unknown element resource I guess that it has never work for 2.x? Mica -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Scott Ferguson Sent: Thursday, November 16, 2006 10:45 AM To: General Discussion for the Resin application server Subject: Re: [Resin-interest] Resin 2.1.7 and JNDI On Nov 16, 2006, at 5:52 AM, Mica Cooper wrote: More info on this... It is supposed to be connecting to localhost:1099 but there is no open 1099 port. How is the 1099 port supposed to be opened? This isn't really a Resin issue, it's a RMI issue. 1099 is the RMI registry. You would need to startup an instance of rmiregistry to make this work. -- Scott ___ 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] problems with quercus and mediawiki on resin-3.0.22
On Nov 15, 2006, at 9:18 AM, Alex Sharaz wrote: > Just tried to install mediawiki on a 3.0.22 system Thanks, I've just filed it as a bug report. Though, Quercus development and fixes are going into the 3.1.x tree (3.1.0 should be in 2-3 weeks), so we'll be encouraging Quercus users to move to 3.1.0 when it's available. -- Scott > > In webapps/wiki/WEB-INF I've got the following set up in resin- > web.xml. > > > > In the wii directory, I've also got a helloworld.php file. > > > > http://caucho.com/ns/resin";> > > > > > > jdbc:mysql://databases.hull.ac.uk:3306/comms_wiki > > fred > > fred > > > > > > > > > > servlet-class="com.caucho.quercus.servlet.QuercusServlet"> > > > > > > > > index.php > > > > > > The helloworld.php example works just fine. > > > > However, when I try running ./wiki/config to init the app, I get > > > > > > > > > > java.lang.NullPointerException > at > com.caucho.quercus.module.StaticFunction.analyzeArguments > (StaticFunction > .java:139) > at > com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215) > at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java: > 69) > at > com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java: > 90) > at > com.caucho.quercus.program.BlockStatement.analyze > (BlockStatement.java:13 > 2) > at > com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112) > at > com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254) > at > com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241) > at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229) > at com.caucho.java.gen.GenClass.generate(GenClass.java:120) > at > com.caucho.java.gen.JavaClassGenerator.generate > (JavaClassGenerator.java: > 273) > at > com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77) > at > com.caucho.quercus.page.PageManager.parse(PageManager.java:234) > at > com.caucho.quercus.page.PageManager.parse(PageManager.java:180) > at com.caucho.quercus.Quercus.parse(Quercus.java:546) > at > com.caucho.quercus.servlet.QuercusServlet.service > (QuercusServlet.java:21 > 7) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) > at > com.caucho.server.dispatch.ServletFilterChain.doFilter > (ServletFilterChai > n.java:106) > at > com.caucho.server.cache.CacheFilterChain.doFilter > (CacheFilterChain.java: > 209) > at > com.caucho.server.webapp.WebAppFilterChain.doFilter > (WebAppFilterChain.ja > va:173) > at > com.caucho.server.dispatch.ServletInvocation.service > (ServletInvocation.j > ava:229) > at > com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) > at > com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) > at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) > at com.caucho.util.ThreadPool.run(ThreadPool.java:442) > at java.lang.Thread.run()V(Unknown Source) > > > The database config statement is correct and I've checked that the > database e xists and has valid access rights set up for the > machine/userid I'm trying to run the wiki on > > Alex > > ** > *** > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ** > ***___ > 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] Resin 2.1.7 and JNDI
On Nov 16, 2006, at 5:52 AM, Mica Cooper wrote: More info on this... It is supposed to be connecting to localhost:1099 but there is no open 1099 port. How is the 1099 port supposed to be opened? This isn't really a Resin issue, it's a RMI issue. 1099 is the RMI registry. You would need to startup an instance of rmiregistry to make this work. -- Scott ___ 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] RESIN 2.1.17 and JSP Out
I have been trying to write some code to capture the output of a JSP page in Resin 2.1.17. What I want to do is call the page, get the HTML output, and send it as an email so that it basically can be configured as an email template. Any ideas? Thanks, Mica Cooper___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Resin 2.1.7 and JNDI
More info on this... It is supposed to be connecting to localhost:1099 but there is no open 1099 port. How is the 1099 port supposed to be opened?___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] error503 on front server
Thanks a lot. I'm not sure it's a bug, maybe something wrong in my config, but thank you to check from your expert point of view. I had no problem to hide error 404 and 500 on application server. Scott Ferguson wrote: > On Nov 15, 2006, at 12:15 PM, Riccardo Cohen wrote: > >> Hi > > I've added it as a bug report: http://bugs.caucho.com/view.php?id=1461 > > Since the LoadBalanceServlet is just a servlet, it should just use > the normal error page mechanism, but I'll need to check if something > is strange. > > -- Scott > >> When all application servers are down, the front load balancing >> server answers 503 to the >> web client. >> I tried to add an error page 503 but it did not work. The standard >> 503 error message still >> displays. >> Here is the webapp conf : >> >>> document-directory='/DevelJsp/webapps/lib_salesforce' >> work-dir='/home/app_working/salesforce/work' >> temp-dir='/home/app_working/salesforce/tmp'> >> >>balance_sf >>com.caucho.servlets.LoadBalanceServlet> servlet-class> >> >> >> >> >>503 >>/err.html >> >> >> >> >> >> Is there any way to put a custom page for that ? >> Thanks >> >> -- >> Très cordialement, >> >> Riccardo Cohen >> ligne directe : 02-47-49-63-24 >> --- >> Articque >> http://www.articque.com >> Moulin des Roches >> 37230 Fondettes - France >> tel : 02-47-49-90-49 >> fax : 02-47-49-91-49 >> >> ___ >> 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 > -- Très cordialement, Riccardo Cohen ligne directe : 02-47-49-63-24 --- Articque http://www.articque.com Moulin des Roches 37230 Fondettes - France tel : 02-47-49-90-49 fax : 02-47-49-91-49 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest