[Resin-interest] Error Handling on Per Directory Basis?
I've got a sub folder under a main folder that handles a mobile version of our site. In resin.conf I've got For the main site, but what I need to do is have a different location for the mobile site: (something like) In apache I'd put it in a tag or put a line in an apache .htaccess file in that folder, but that won't work here. Is there an equivalent tag or method for Resin? Thanks in advance! (PS - running resin 2.1.4 - yeah I know, it's old, but it works great!) -- View this message in context: http://www.nabble.com/Error-Handling-on-Per-Directory-Basis--tp24855159p24855159.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error while deploying a web application on Resin 3.1.6
Yes, you're right. Thank you and Scott. The reason is I added Hibernate Annotations 3.3.0 GA and EntityManager 3.3.2 GA in my project. As describled in the compatibility matrix on Hibernate's website, EntityManager 3.3.2 GA is compatible with Annotations 3.3.x, so I believe they are REALLY compatible. But EntityManager 3.3.2 GA tries to call the method org.hibernate.cfg.AnnotationConfiguration.addProperties() which is only available in Annotations 3.3.1 GA, and this causes Resin failed to load my application. George Emil Ong wrote: > > On Thu, Jul 10, 2008 at 08:13:05PM -0700, George Wei wrote: >> >> All items in my classpath are as follows: >> > > [snip] > > Hi George, > > I don't see the hibernate jar in there... is it perhaps in your webapp's > lib? > > If Resin is compiling your Java source for you, you might try deleting > the class files in your webapp to force recompilation. Getting rid of > the WEB-INF/work might also help. > > BTW, I'm not sure if this is the right version of Hibernate, but I found > the method you're referring to: > > http://www.hibernate.org/hib_docs/annotations/api/org/hibernate/cfg/AnnotationConfiguration.html#addProperties(java.util.Properties) > > Best, > Emil > > Emil Ong > Chief Evangelist > Caucho Technology, Inc. > Tel. (858) 361-2436 > mailto:[EMAIL PROTECTED] > http://blog.caucho.com/ > > Caucho: Reliable Open Source > --> Resin: application server > --> Quercus: PHP in Java > --> Hessian Web Services > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > -- View this message in context: http://www.nabble.com/Error-while-deploying-a-web-application-on-Resin-3.1.6-tp18376474p18415104.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error while deploying a web application on Resin 3.1.6
On Thu, Jul 10, 2008 at 08:13:05PM -0700, George Wei wrote: > > All items in my classpath are as follows: > [snip] Hi George, I don't see the hibernate jar in there... is it perhaps in your webapp's lib? If Resin is compiling your Java source for you, you might try deleting the class files in your webapp to force recompilation. Getting rid of the WEB-INF/work might also help. BTW, I'm not sure if this is the right version of Hibernate, but I found the method you're referring to: http://www.hibernate.org/hib_docs/annotations/api/org/hibernate/cfg/AnnotationConfiguration.html#addProperties(java.util.Properties) Best, Emil > As you can understand, D:\Java\JDK150\ is where I install JDK 1.5.0 and > E:\Applications\resin-3.1.6\ is where I install Resin 3.1.6. It looks there > are not any strange jars in my classpath. Any other clues? > > George > > > Scott Ferguson wrote: > > > > > > There's probably an old jar somewhere in your classpath. If you start > > Resin with -verbose, you'll see the system classpath, which might help > > track down the extra jar. > > > > Resin itself couldn't create that error. It's due to some class > > compiled against an old version of a method. > > > > -- Scott > > > > -- > View this message in context: > http://www.nabble.com/Error-while-deploying-a-web-application-on-Resin-3.1.6-tp18376474p18395860.html > Sent from the Resin mailing list archive at Nabble.com. > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest Emil Ong Chief Evangelist Caucho Technology, Inc. Tel. (858) 361-2436 mailto:[EMAIL PROTECTED] http://blog.caucho.com/ Caucho: Reliable Open Source --> Resin: application server --> Quercus: PHP in Java --> Hessian Web Services ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error while deploying a web application on Resin 3.1.6
All items in my classpath are as follows: . D:\Java\JDK150\lib\tools.jar D:\Java\JDK150\jre\lib\rt.jar E:\Applications\resin-3.1.6\classes E:\Applications\resin-3.1.6\lib\resin.jar E:\Applications\resin-3.1.6\lib\activation.jar E:\Applications\resin-3.1.6\lib\ejb-15.jar E:\Applications\resin-3.1.6\lib\hessian.jar E:\Applications\resin-3.1.6\lib\j2ee-management-10.jar E:\Applications\resin-3.1.6\lib\javamail-14.jar E:\Applications\resin-3.1.6\lib\jaxrpc-15.jar E:\Applications\resin-3.1.6\lib\jaxws-api.jar E:\Applications\resin-3.1.6\lib\jca-15.jar E:\Applications\resin-3.1.6\lib\jms-11.jar E:\Applications\resin-3.1.6\lib\jpa-15.jar E:\Applications\resin-3.1.6\lib\jsdk-15.jar E:\Applications\resin-3.1.6\lib\jsf-12.jar E:\Applications\resin-3.1.6\lib\jsr88.jar E:\Applications\resin-3.1.6\lib\jstl-11.jar E:\Applications\resin-3.1.6\lib\jta-101.jar E:\Applications\resin-3.1.6\lib\jws-15.jar E:\Applications\resin-3.1.6\lib\portlet-10.jar E:\Applications\resin-3.1.6\lib\quercus.jar E:\Applications\resin-3.1.6\lib\resin-deploy.jar E:\Applications\resin-3.1.6\lib\resin-util.jar E:\Applications\resin-3.1.6\lib\saaj.jar E:\Applications\resin-3.1.6\lib\script-10.jar E:\Applications\resin-3.1.6\lib\webbeans-16.jar E:\Applications\resin-3.1.6\lib\webutil.jar As you can understand, D:\Java\JDK150\ is where I install JDK 1.5.0 and E:\Applications\resin-3.1.6\ is where I install Resin 3.1.6. It looks there are not any strange jars in my classpath. Any other clues? George Scott Ferguson wrote: > > > There's probably an old jar somewhere in your classpath. If you start > Resin with -verbose, you'll see the system classpath, which might help > track down the extra jar. > > Resin itself couldn't create that error. It's due to some class > compiled against an old version of a method. > > -- Scott > -- View this message in context: http://www.nabble.com/Error-while-deploying-a-web-application-on-Resin-3.1.6-tp18376474p18395860.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error on web application startup withaweb-service-client tag
Scott, Is the web-service-client tag not supported anymore? Is there a way to expose one service using more than one protocol with the servlet-mapping tag? Could you send me where I can find the latest correct documentation for resin 3.1.6? Thanks Sashi On Thu, Jul 10, 2008 at 12:19 PM, Scott Ferguson <[EMAIL PROTECTED]> wrote: > > On Jul 10, 2008, at 6:35 AM, Sashidhar Guduri wrote: > > Resin documentation seems to have fallen behind. It looks like I can't > depend on the documentation but instead experiment. Anyway here is what I > found and I am getting a new exception now when I startup. I was able to use > jndi-name for remote-client tag. My remote-client looks like this now: > > > edu.umich.authentication.cosign.CosignService > hessian:url= > https://172.20.57.97/test.msis.ws/services/CosignService > > > > That's the correct configuration. > > > I get the followng exception when the app starts up > > > [2008/07/10 09:33:38.822] Caused by: java.lang.ClassCastException: > com.caucho.remote.hessian.HessianProtocolProxyFactory$BeanProxy cannot be > cast to edu.umich.authentication.cosign.CosignService > [2008/07/10 09:33:38.822] at > edu.umich.authentication.cosign.filter.CosignAuthenticationFilter.init(CosignAuthenticationFilter.java:181) > [2008/07/10 09:33:38.822] at > com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:144) > [2008/07/10 09:33:38.822] ... 19 more > > > That looks like a Resin bug. I've filed it as > http://bugs.caucho.com/view.php?id=2780 > > It looks like Resin is registering the wrong object (the factory) with > JNDI. > > -- Scott > > > Thanks > Sashi > > On Thu, Jul 10, 2008 at 9:22 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: > >> Yep, I believe you are correct. It should be registered with WebBeans >> and the preferred method these days is dependency injection. Have you >> considered that instead? Frankly I'm not sure if it's possible to have >> Resin register it in JNDI after the 3.1.5 refactoring. Maybe someone else >> can weigh in before I get a chance to test a few more things out. >> >> Ron >> >> ------ >> *From:* [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] *On Behalf Of *Sashidhar Guduri >> *Sent:* Thursday, July 10, 2008 8:49 AM >> *To:* General Discussion for the Resin application server >> *Subject:* Re: [Resin-interest] Error on web application startup >> withaweb-service-client tag >> >> Thanks for the reply but that format does not expose it using jndi. Is >> there a way to expose using jndi for remote client tag? >> Sashi >> >> On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: >> >>> Try this format instead: >>> >>> >>> < >>> remote-client name="myWebSvc" interface="example.MyWebService" uri= >>> "hessian:url=${webApp.url}/mywebsvc/"/> >>> >>> Regards, >>> *Ron Monson*** >>> EDS - Homeland Security & Justice >>> Systems Architecture & Development >>> Dept. Of Homeland Security, SEVIS Project >>> 800 K St. NW, Suite 830, Washington, DC 20001 >>> Mobile (202) 437-2157 >>> [EMAIL PROTECTED] <[EMAIL PROTECTED]> >>> >>> -- >>> *From:* [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] *On Behalf Of *Sashidhar Guduri >>> *Sent:* Thursday, July 10, 2008 8:27 AM >>> *To:* General Discussion for the Resin application server >>> *Subject:* [Resin-interest] Error on web application startup with >>> aweb-service-client tag >>> >>> I get the following error when I start up resin: >>> [2008/07/10 08:22:22.454] >>> /usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown >>> property of 'com.caucho.remote.client.RemoteClient'. >>> [2008/07/10 08:22:22.454] >>> [2008/07/10 08:22:22.454] 10: >> jndi-name="service/CosignService"> >>> [2008/07/10 08:22:22.454] 11: hessian: >>> http://172.20.57.97/test.msis.ws/services/CosignService >>> [2008/07/10 08:22:22.454] 12: >>> edu.umich.authentication.cosign.CosignService >>> [2008/07/10 08:22:22.454] 13: >>> >>> If I don't give a url, it complains that url is required. Is there a bug >>> in resin 3.1.6 to not handle the url tag properly? >>> >>> Thanks >>> Sashi >>> >>> >>>
Re: [Resin-interest] Error on web application startup withaweb-service-client tag
On Jul 10, 2008, at 6:35 AM, Sashidhar Guduri wrote: Resin documentation seems to have fallen behind. It looks like I can't depend on the documentation but instead experiment. Anyway here is what I found and I am getting a new exception now when I startup. I was able to use jndi-name for remote-client tag. My remote-client looks like this now: edu.umich.authentication.cosign.CosignServiceinterface> hessian:url=https://172.20.57.97/test.msis.ws/services/CosignService That's the correct configuration. I get the followng exception when the app starts up [2008/07/10 09:33:38.822] Caused by: java.lang.ClassCastException: com.caucho.remote.hessian.HessianProtocolProxyFactory$BeanProxy cannot be cast to edu.umich.authentication.cosign.CosignService [2008/07/10 09:33:38.822] at edu .umich .authentication .cosign .filter .CosignAuthenticationFilter.init(CosignAuthenticationFilter.java:181) [2008/07/10 09:33:38.822] at com .caucho .server.dispatch.FilterManager.createFilter(FilterManager.java:144) [2008/07/10 09:33:38.822] ... 19 more That looks like a Resin bug. I've filed it as http://bugs.caucho.com/view.php?id=2780 It looks like Resin is registering the wrong object (the factory) with JNDI. -- Scott Thanks Sashi On Thu, Jul 10, 2008 at 9:22 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: Yep, I believe you are correct. It should be registered with WebBeans and the preferred method these days is dependency injection. Have you considered that instead? Frankly I'm not sure if it's possible to have Resin register it in JNDI after the 3.1.5 refactoring. Maybe someone else can weigh in before I get a chance to test a few more things out. Ron From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Sashidhar Guduri Sent: Thursday, July 10, 2008 8:49 AM To: General Discussion for the Resin application server Subject: Re: [Resin-interest] Error on web application startup withaweb-service-client tag Thanks for the reply but that format does not expose it using jndi. Is there a way to expose using jndi for remote client tag? Sashi On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: Try this format instead: < remote-client name="myWebSvc" interface="example.MyWebService" uri="hessian:url=${webApp.url}/mywebsvc/"/> Regards, Ron Monson EDS - Homeland Security & Justice Systems Architecture & Development Dept. Of Homeland Security, SEVIS Project 800 K St. NW, Suite 830, Washington, DC 20001 Mobile (202) 437-2157 [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Sashidhar Guduri Sent: Thursday, July 10, 2008 8:27 AM To: General Discussion for the Resin application server Subject: [Resin-interest] Error on web application startup with aweb- service-client tag I get the following error when I start up resin: [2008/07/10 08:22:22.454] /usr/resin/resin-pro-3.1.6/conf/ webservices.conf:11: 'url' is an unknown property of 'com.caucho.remote.client.RemoteClient'. [2008/07/10 08:22:22.454] [2008/07/10 08:22:22.454] 10: name="service/CosignService"> [2008/07/10 08:22:22.454] 11: hessian:http://172.20.57.97/test.msis.ws/services/CosignService [2008/07/10 08:22:22.454] 12: edu.umich.authentication.cosign.CosignService [2008/07/10 08:22:22.454] 13: If I don't give a url, it complains that url is required. Is there a bug in resin 3.1.6 to not handle the url tag properly? Thanks Sashi ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- Sashidhar Guduri, App Analyst Lead UM Medical School Information Services skype: guduri-umich Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171 http://www.med.umich.edu/medschool/msis/ ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- Sashidhar Guduri, App Analyst Lead UM Medical School Information Services skype: guduri-umich Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171 http://www.med.umich.edu/medschool/msis/ ___ 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] Error while deploying a web application on Resin 3.1.6
On Jul 9, 2008, at 11:03 PM, George Wei wrote: > > Dear all, > > I've created a web application and deployed it on Tomcat 6.0.x, it > works > fine. Then I tried to deploy the same war file on Resin 3.1.6, I got > the > following error messages: > > > It seems method com.caucho.server.webapp.WebApp.addServlet() tries > to call > org.hibernate.cfg.AnnotationConfiguration.addProperties(), but can > not find > it. In fact, I've checked the API doc of Hibernate Annotations 3.3.0 > GA, > this method does NOT exist. So is there some wrong with Resin > itself? If > not, how can I fix this problem? Thanks for any clues. There's probably an old jar somewhere in your classpath. If you start Resin with -verbose, you'll see the system classpath, which might help track down the extra jar. Resin itself couldn't create that error. It's due to some class compiled against an old version of a method. -- Scott > > > Regards, > George > -- > View this message in context: > http://www.nabble.com/Error-while-deploying-a-web-application-on-Resin-3.1.6-tp18376474p18376474.html > Sent from the Resin mailing list archive at Nabble.com. > > > > ___ > 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] Error on web application startup withaweb-service-client tag
Resin documentation seems to have fallen behind. It looks like I can't depend on the documentation but instead experiment. Anyway here is what I found and I am getting a new exception now when I startup. I was able to use jndi-name for remote-client tag. My remote-client looks like this now: edu.umich.authentication.cosign.CosignService hessian:url= https://172.20.57.97/test.msis.ws/services/CosignService I get the followng exception when the app starts up [2008/07/10 09:33:38.822] javax.servlet.ServletException: java.lang.ClassCastException: com.caucho.remote.hessian.HessianProtocolProxyFactory$BeanProxy cannot be cast to edu.umich.authentication.cosign.CosignService [2008/07/10 09:33:38.822] at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:174) [2008/07/10 09:33:38.822] at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:91) [2008/07/10 09:33:38.822] at com.caucho.server.webapp.WebApp.start(WebApp.java:1871) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [2008/07/10 09:33:38.822] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659) [2008/07/10 09:33:38.822] at com.caucho.server.host.Host.start(Host.java:450) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549) [2008/07/10 09:33:38.822] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160) [2008/07/10 09:33:38.822] at com.caucho.server.host.HostContainer.start(HostContainer.java:484) [2008/07/10 09:33:38.822] at com.caucho.server.cluster.Server.start(Server.java:1315) [2008/07/10 09:33:38.822] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710) [2008/07/10 09:33:38.822] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542) [2008/07/10 09:33:38.822] at com.caucho.server.resin.Resin.start(Resin.java:703) [2008/07/10 09:33:38.822] at com.caucho.server.resin.Resin.initMain(Resin.java:1157) [2008/07/10 09:33:38.822] at com.caucho.server.resin.Resin.main(Resin.java:1360) [2008/07/10 09:33:38.822] Caused by: java.lang.ClassCastException: com.caucho.remote.hessian.HessianProtocolProxyFactory$BeanProxy cannot be cast to edu.umich.authentication.cosign.CosignService [2008/07/10 09:33:38.822] at edu.umich.authentication.cosign.filter.CosignAuthenticationFilter.init(CosignAuthenticationFilter.java:181) [2008/07/10 09:33:38.822] at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:144) [2008/07/10 09:33:38.822] ... 19 more Thanks Sashi On Thu, Jul 10, 2008 at 9:22 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: > Yep, I believe you are correct. It should be registered with WebBeans and > the preferred method these days is dependency injection. Have you > considered that instead? Frankly I'm not sure if it's possible to have > Resin register it in JNDI after the 3.1.5 refactoring. Maybe someone else > can weigh in before I get a chance to test a few more things out. > > Ron > > -- > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Sashidhar Guduri > *Sent:* Thursday, July 10, 2008 8:49 AM > *To:* General Discussion for the Resin application server > *Subject:* Re: [Resin-interest] Error on web application startup > withaweb-service-client tag > > Thanks for the reply but that format does not expose it using jndi. Is > there a way to expose using jndi for remote client tag? > Sashi > > On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: > >> Try this format instead: >> >> >> < >> remote-client name="myWebSvc" interface="example.MyWebService" uri= >> "hessian:url=${webApp.url}/mywebsvc/"/> >> >> >> >> Regards, >> *Ron Monson*** >> EDS - Homeland Security & Justice >> Systems Architecture & Development >> Dept. Of Homeland Security, SEVIS Project >> 800 K St. NW, Suite 830, Washington, DC 20001 >> Mobile (202) 437-2157 >> [EMAIL PROTECTED] <[EMAIL PROTECTED]> >> >> -- >> *From:* [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] *On Behalf Of *Sas
Re: [Resin-interest] Error on web application startup withaweb-service-client tag
Yep, I believe you are correct. It should be registered with WebBeans and the preferred method these days is dependency injection. Have you considered that instead? Frankly I'm not sure if it's possible to have Resin register it in JNDI after the 3.1.5 refactoring. Maybe someone else can weigh in before I get a chance to test a few more things out. Ron From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sashidhar Guduri Sent: Thursday, July 10, 2008 8:49 AM To: General Discussion for the Resin application server Subject: Re: [Resin-interest] Error on web application startup withaweb-service-client tag Thanks for the reply but that format does not expose it using jndi. Is there a way to expose using jndi for remote client tag? Sashi On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: Try this format instead: < remote-client name="myWebSvc" interface="example.MyWebService" uri="hessian:url=${webApp.url}/mywebsvc/"/> Regards, Ron Monson EDS - Homeland Security & Justice Systems Architecture & Development Dept. Of Homeland Security, SEVIS Project 800 K St. NW, Suite 830, Washington, DC 20001 Mobile (202) 437-2157 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sashidhar Guduri Sent: Thursday, July 10, 2008 8:27 AM To: General Discussion for the Resin application server Subject: [Resin-interest] Error on web application startup with aweb-service-client tag I get the following error when I start up resin: [2008/07/10 08:22:22.454] /usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown property of 'com.caucho.remote.client.RemoteClient'. [2008/07/10 08:22:22.454] [2008/07/10 08:22:22.454] 10: [2008/07/10 08:22:22.454] 11: hessian:http://172.20.57.97/test.msis.ws/services/CosignService [2008/07/10 08:22:22.454] 12: edu.umich.authentication.cosign.CosignService [2008/07/10 08:22:22.454] 13: If I don't give a url, it complains that url is required. Is there a bug in resin 3.1.6 to not handle the url tag properly? Thanks Sashi ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- Sashidhar Guduri, App Analyst Lead UM Medical School Information Services skype: guduri-umich Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171 http://www.med.umich.edu/medschool/msis/ ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error on web application startup with aweb-service-client tag
Thanks for the reply but that format does not expose it using jndi. Is there a way to expose using jndi for remote client tag? Sashi On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron <[EMAIL PROTECTED]> wrote: > Try this format instead: > > > < > remote-client name="myWebSvc" interface="example.MyWebService" uri= > "hessian:url=${webApp.url}/mywebsvc/"/> > > > > Regards, > *Ron Monson*** > EDS - Homeland Security & Justice > Systems Architecture & Development > Dept. Of Homeland Security, SEVIS Project > 800 K St. NW, Suite 830, Washington, DC 20001 > Mobile (202) 437-2157 > [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > -- > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Sashidhar Guduri > *Sent:* Thursday, July 10, 2008 8:27 AM > *To:* General Discussion for the Resin application server > *Subject:* [Resin-interest] Error on web application startup with > aweb-service-client tag > > I get the following error when I start up resin: > [2008/07/10 08:22:22.454] > /usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown > property of 'com.caucho.remote.client.RemoteClient'. > [2008/07/10 08:22:22.454] > [2008/07/10 08:22:22.454] 10: jndi-name="service/CosignService"> > [2008/07/10 08:22:22.454] 11: hessian: > http://172.20.57.97/test.msis.ws/services/CosignService > [2008/07/10 08:22:22.454] 12: > edu.umich.authentication.cosign.CosignService > [2008/07/10 08:22:22.454] 13: > > If I don't give a url, it complains that url is required. Is there a bug in > resin 3.1.6 to not handle the url tag properly? > > Thanks > Sashi > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > -- Sashidhar Guduri, App Analyst Lead UM Medical School Information Services skype: guduri-umich Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171 http://www.med.umich.edu/medschool/msis/ ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error on web application startup with aweb-service-client tag
Try this format instead: Regards, Ron Monson EDS - Homeland Security & Justice Systems Architecture & Development Dept. Of Homeland Security, SEVIS Project 800 K St. NW, Suite 830, Washington, DC 20001 Mobile (202) 437-2157 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sashidhar Guduri Sent: Thursday, July 10, 2008 8:27 AM To: General Discussion for the Resin application server Subject: [Resin-interest] Error on web application startup with aweb-service-client tag I get the following error when I start up resin: [2008/07/10 08:22:22.454] /usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown property of 'com.caucho.remote.client.RemoteClient'. [2008/07/10 08:22:22.454] [2008/07/10 08:22:22.454] 10: [2008/07/10 08:22:22.454] 11: hessian:http://172.20.57.97/test.msis.ws/services/CosignService [2008/07/10 08:22:22.454] 12: edu.umich.authentication.cosign.CosignService [2008/07/10 08:22:22.454] 13: If I don't give a url, it complains that url is required. Is there a bug in resin 3.1.6 to not handle the url tag properly? Thanks Sashi ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Error on web application startup with a web-service-client tag
I get the following error when I start up resin: [2008/07/10 08:22:22.454] /usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown property of 'com.caucho.remote.client.RemoteClient'. [2008/07/10 08:22:22.454] [2008/07/10 08:22:22.454] 10: [2008/07/10 08:22:22.454] 11: hessian: http://172.20.57.97/test.msis.ws/services/CosignService [2008/07/10 08:22:22.454] 12: edu.umich.authentication.cosign.CosignService [2008/07/10 08:22:22.454] 13: If I don't give a url, it complains that url is required. Is there a bug in resin 3.1.6 to not handle the url tag properly? Thanks Sashi ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Error while deploying a web application on Resin 3.1.6
Dear all, I've created a web application and deployed it on Tomcat 6.0.x, it works fine. Then I tried to deploy the same war file on Resin 3.1.6, I got the following error messages: 2008-7-10 13:45:55 com.caucho.boot.WatchdogProcess run Info: WatchdogProcess[Watchdog[],1] starting Resin [13:45:55.171] {watchdog-} WatchdogProcess[Watchdog[],1] starting Resin Resin-3.1.6 (built Sun, 04 May 2008 03:25:50 PDT) Copyright(c) 1998-2008 Caucho Technology. All rights reserved. Using Resin(R) Open Source under the GNU Public License (GPL). See http://www.caucho.com for information on Resin Professional, including caching, clustering, JNI acceleration, and OpenSSL integration. Starting Resin on Thu, 10 Jul 2008 13:45:59 +0800 (CST) [13:46:04.125] {main} 'select-manager' requires Resin Professional. See http://www.caucho.com for information and licensing. [13:46:04.125] {main} [13:46:04.125] {main} Windows 2003 5.2 x86 [13:46:04.125] {main} Java(TM) 2 Runtime Environment, Standard Edition 1.5.0_10-b03, GBK, zh [13:46:04.125] {main} Java HotSpot(TM) Client VM 1.5.0_10-b03, 32, mixed mode, Sun Microsystems Inc. [13:46:04.125] {main} user.name: Administrator [13:46:04.125] {main} resin.home = E:\Applications\resin-3.1.6 [13:46:04.125] {main} resin.root = E:\Applications\resin-3.1.6 [13:46:04.187] {main} resin.conf = /E:/Applications/resin-3.1.6/conf/resin.conf [13:46:04.187] {main} [13:46:05.015] {main} WebApp[http://localhost:8080] active [13:46:05.484] {main} WebApp[http://localhost:8080/resin-admin] active [13:46:10.187] {main} /E:/Applications/resin-3.1.6/conf/app-default.xml:17: com.caucho.server.webapp.WebApp.addServlet(): java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.addProperties(Ljava/util/Properties;)Lorg/hibernate/cfg/AnnotationConfiguration; [13:46:10.187] {main} [13:46:10.187] {main} 15: [13:46:10.187] {main} 16: [13:46:10.187] {main} 18: [13:46:10.187] {main} 19: http://localhost:8080/resin-doc] active [13:46:16.609] {main} Host[] active [13:46:16.656] {main} hmux listening to 127.0.0.1:6800 [13:46:16.687] {main} http listening to *:8080 [13:46:16.703] {main} Server[id=,cluster=app-tier] active [13:46:16.703] {main} Resin started in 17844ms It seems method com.caucho.server.webapp.WebApp.addServlet() tries to call org.hibernate.cfg.AnnotationConfiguration.addProperties(), but can not find it. In fact, I've checked the API doc of Hibernate Annotations 3.3.0 GA, this method does NOT exist. So is there some wrong with Resin itself? If not, how can I fix this problem? Thanks for any clues. Regards, George -- View this message in context: http://www.nabble.com/Error-while-deploying-a-web-application-on-Resin-3.1.6-tp18376474p18376474.html Sent from the Resin mailing list archive at Nabble.com. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Error 503 - Service unavailable
Hello! I have a problem with Resin and Apache, where Apache generates the following 503 error message at random points in time: "Service unavailable! The server is temporarily unable to service your request due to maintenance downtime or capacity problems..." The server is setup with in a three layer configuration, with a web cache and Apache web server on one machine, and Resin 2.1.17 on another. The error message occurs at random times, but only when the browser refreshes a page by itself (ie. meta refresh or using javascript to change the URL of one frame in a frameset.) When refireshing the page after the error has occured, then the problem doesn't happen. My question is really, how do I go about debugging this error message? I realize that the error comes from Apache, but I've not been able to find out what the problem is. The server is not under much load, and no relevant thresholds (number of connections etc) are pushed to the limit. How do I debug Apache / Resin to resolve this problem? - Andreas ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Error Handling with Resin / Apache
Hey Listees, I'm new on the list and new working with Resin. I have Railo running with Resin and Apache - and the following question: I want to design my own error pages, so I edit the config of Apache and get the following prob: the 403 error (edited in the apache.conf) works with my 403 error page - as htm - is ok the 404 error (also edited in the apache conf) calls the resin application and print the resin error any cfm-errors are handled by Railo - which is ok So, why is the 404 error handled by Resin and how or where can I edit the error page? regards ERich ## F.A.N.-Internet Service GmbH Geschäftsführer Dipl.-Ing (FH) Johannes Helmberger Erich Parzefall • Leibnizstr. 3 • 93055 Regensburg Tel. 0941-7872-217 [EMAIL PROTECTED] Reg.-Gericht Rgbg., HRB 6690 ## The box said "..requires Windows95 or better", so I bought a Mac. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] error
to many servelet. what is this error? ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error starting Resin with OpenSSL
My personal opinion is that OpenSSL, in its current incarnation, is garbage. We've had nothing but problems getting it to work with Resin on Windows. It works, but it also causes Resin to crash several times per day. We're working on moving to a hardware-based SSL solution. Ok, now that my bias is out in the open, one thing I've learned is that Resin is (necessarily) very sensitive to which version of OpenSSL it works with because OpenSSL, not being a 1.x product yet, which I am pretty sure it never will be in my lifetime, reserves the right to change its API at any point. I've even tried upgrading OpenSSL within a point-release, e.g. from 'b' to 'd' (or whatever) and I couldn't get it to work. Therefore, it's been my experience that you must closely match your specific version of Resin with the specific version of OpenSSL with which it was developed to work. Unfortunately, the last time I looked, which I admit was a while ago, Caucho doesn't publish anything that says, "You must use version of X of OpenSSL with version X of Resin." I'm not saying a version mismatch is your problem, just that it's a problem I've run into in the past and one thing you could try is getting different versions of OpenSSL and trying each of them to see if it solves your problem. Rob On Mar 22, 2007, at 11:41 , Justin T. Sampson wrote: > Hi! We're getting an exception during Resin startup with SSL turned > on. We've tried both Resin 3.1.0 and Resin 3.1.s070319 and got the > same error; we have OpenSSL 0.9.8a and we're running Fedora Core 5. If > we take out the openssl configuration from resin.conf, the server > starts fine. > > Here's what we see on startup (with -verbose): > > /home/ia/jdk/bin/java \ > -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \ > -Djava.system.class.loader=com.caucho.loader.SystemClassLoader \ > -Djava.awt.headless=true \ > -Dresin.home=/home/ia/resin/ \ > -Xmx256m \ > -Xss1m \ > -Xdebug \ > -Dcom.sun.management.jmxremote \ > com.caucho.server.resin.Resin \ > -socketwait \ > 53902 \ > -verbose > CLASSPATH: /home/ia/jdk/lib/tools.jar:/home/ia/resin/lib/resin.jar:/ > home/ia/resin/lib/jaxrpc-15.jar:/home/ia/resin/lib/activation.jar:/ > home/ia/resin/lib/ejb-15.jar:/home/ia/resin/lib/j2ee-deploy-10.jar:/ > home/ia/resin/lib/j2ee-management-10.jar:/home/ia/resin/lib/ > javamail-14.jar:/home/ia/resin/lib/jaxb-api.jar:/home/ia/resin/lib/ > jaxb-impl.jar:/home/ia/resin/lib/jaxb-xjc.jar:/home/ia/resin/lib/ > jaxb1-impl.jar:/home/ia/resin/lib/jca-15.jar:/home/ia/resin/lib/ > jms-11.jar:/home/ia/resin/lib/jpa-15.jar:/home/ia/resin/lib/ > jsdk-15.jar:/home/ia/resin/lib/jsf-12.jar:/home/ia/resin/lib/ > jstl-11.jar:/home/ia/resin/lib/jta-101.jar:/home/ia/resin/lib/ > portlet-10.jar:/home/ia/resin/lib/quercus.jar:/home/ia/resin/lib/ > resin-util.jar:/home/ia/resin/lib/script-10.jar:/home/ia/resin/lib/ > webutil.jar:/home/ia/resin/lib/mysql-connector-java-5.0.4-bin.jar > DYLD_LIBRARY_PATH: /home/ia/resin/libexec > LD_LIBRARY_PATH: /home/ia/resin/libexec > Resin-3.1.s070319 (built Mon, 19 Mar 2007 04:39:31 PDT) > Copyright(c) 1998-2006 Caucho Technology. All rights reserved. > > Using Resin(R) Open Source under the GNU Public License (GPL). > > See http://www.caucho.com for information on Resin Professional, > including caching, clustering, JNI acceleration, and OpenSSL > integration. > > Starting Resin on Thu, 22 Mar 2007 11:19:44 -0700 (PDT) > > [11:19:46.376] Server[id=,cluster=app-tier] starting > [11:19:46.377] > [11:19:46.377] Linux 2.6.16-xenU-CN_1-NF i386 > [11:19:46.377] Java 1.5.0_08-b03, 32, mixed mode, ANSI_X3.4-1968, en, > Sun Microsystems Inc. > [11:19:46.377] user.name: root > [11:19:46.377] resin.home = /home/ia/resin/ > [11:19:46.378] root.directory = /home/ia/resin/ > [11:19:46.378] resin.conf = /home/ia/resin/conf/resin.conf > [11:19:46.379] > [11:19:46.385] hmux listening to localhost.localdomain:6800 > [11:19:46.385] http listening to *:81 > [11:19:46.517] Host[] starting > [11:19:46.798] WebApp[http://localhost:81] starting > [11:19:46.880] WebApp[http://localhost:81/tools] starting > [11:19:46.892] java.lang.NullPointerException > [11:19:46.892] at com.caucho.server.cluster.Server.start > (Server.java:1101) > [11:19:46.892] at > com.caucho.server.cluster.Cluster.startServer(Cluster.java:689) > [11:19:46.892] at > com.caucho.server.cluster.ClusterServer.startServer > (ClusterServer.java:431) > [11:19:46.892] at com.caucho.server.resin.Resin.start(Resin.java:704) > [11:19:46.892] at com.caucho.server.resin.Resin.initMain > (Resin.java:1137) > [11:19:46.892] at com.caucho.server.resin.Resin.main(Resin.java:1334) > > Cheers, > Justin Sampson > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-int
[Resin-interest] Error starting Resin with OpenSSL
Hi! We're getting an exception during Resin startup with SSL turned on. We've tried both Resin 3.1.0 and Resin 3.1.s070319 and got the same error; we have OpenSSL 0.9.8a and we're running Fedora Core 5. If we take out the openssl configuration from resin.conf, the server starts fine. Here's what we see on startup (with -verbose): /home/ia/jdk/bin/java \ -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \ -Djava.system.class.loader=com.caucho.loader.SystemClassLoader \ -Djava.awt.headless=true \ -Dresin.home=/home/ia/resin/ \ -Xmx256m \ -Xss1m \ -Xdebug \ -Dcom.sun.management.jmxremote \ com.caucho.server.resin.Resin \ -socketwait \ 53902 \ -verbose CLASSPATH: /home/ia/jdk/lib/tools.jar:/home/ia/resin/lib/resin.jar:/home/ia/resin/lib/jaxrpc-15.jar:/home/ia/resin/lib/activation.jar:/home/ia/resin/lib/ejb-15.jar:/home/ia/resin/lib/j2ee-deploy-10.jar:/home/ia/resin/lib/j2ee-management-10.jar:/home/ia/resin/lib/javamail-14.jar:/home/ia/resin/lib/jaxb-api.jar:/home/ia/resin/lib/jaxb-impl.jar:/home/ia/resin/lib/jaxb-xjc.jar:/home/ia/resin/lib/jaxb1-impl.jar:/home/ia/resin/lib/jca-15.jar:/home/ia/resin/lib/jms-11.jar:/home/ia/resin/lib/jpa-15.jar:/home/ia/resin/lib/jsdk-15.jar:/home/ia/resin/lib/jsf-12.jar:/home/ia/resin/lib/jstl-11.jar:/home/ia/resin/lib/jta-101.jar:/home/ia/resin/lib/portlet-10.jar:/home/ia/resin/lib/quercus.jar:/home/ia/resin/lib/resin-util.jar:/home/ia/resin/lib/script-10.jar:/home/ia/resin/lib/webutil.jar:/home/ia/resin/lib/mysql-connector-java-5.0.4-bin.jar DYLD_LIBRARY_PATH: /home/ia/resin/libexec LD_LIBRARY_PATH: /home/ia/resin/libexec Resin-3.1.s070319 (built Mon, 19 Mar 2007 04:39:31 PDT) Copyright(c) 1998-2006 Caucho Technology. All rights reserved. Using Resin(R) Open Source under the GNU Public License (GPL). See http://www.caucho.com for information on Resin Professional, including caching, clustering, JNI acceleration, and OpenSSL integration. Starting Resin on Thu, 22 Mar 2007 11:19:44 -0700 (PDT) [11:19:46.376] Server[id=,cluster=app-tier] starting [11:19:46.377] [11:19:46.377] Linux 2.6.16-xenU-CN_1-NF i386 [11:19:46.377] Java 1.5.0_08-b03, 32, mixed mode, ANSI_X3.4-1968, en, Sun Microsystems Inc. [11:19:46.377] user.name: root [11:19:46.377] resin.home = /home/ia/resin/ [11:19:46.378] root.directory = /home/ia/resin/ [11:19:46.378] resin.conf = /home/ia/resin/conf/resin.conf [11:19:46.379] [11:19:46.385] hmux listening to localhost.localdomain:6800 [11:19:46.385] http listening to *:81 [11:19:46.517] Host[] starting [11:19:46.798] WebApp[http://localhost:81] starting [11:19:46.880] WebApp[http://localhost:81/tools] starting [11:19:46.892] java.lang.NullPointerException [11:19:46.892] at com.caucho.server.cluster.Server.start(Server.java:1101) [11:19:46.892] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:689) [11:19:46.892] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:431) [11:19:46.892] at com.caucho.server.resin.Resin.start(Resin.java:704) [11:19:46.892] at com.caucho.server.resin.Resin.initMain(Resin.java:1137) [11:19:46.892] at com.caucho.server.resin.Resin.main(Resin.java:1334) Cheers, Justin Sampson ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error
> 500 Servlet Exception > javax.servlet.ServletException: too many servlet includesI use tomcat > and I like to change to resin.But the jsp return this mensseger. Debug logging will be very helpful here, you can enable it by adding the following line in resin.conf: A level of "finer" will give even more information. The debug log will show the urls that are being used in the forward, and will help to trace down the source of the problem. -- Sam ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error
Hi! What kind of url-pattern do you have defined for the servlet(s) of your application in web.xml? I googled a bit and found out that people have been getting this exception because the servlet that uses RequestDispatcher to forward to jsp page has an url pattern that matches the dispatch request too. This will result in a loop where the request never goes to the jsp, but keeps on going back to the same servlet. I haven't experienced this myself, though. It would be helpful to see your servlet config and the way the request dispatching is done... -Kai 2007/2/11, Mário Coelho <[EMAIL PROTECTED]>: > > > Hi > > Some one know what is wrong? > > > 500 Servlet Exceptionjavax.servlet.ServletException: too many servlet > includes > > I use tomcat and I like to change to resin. > > But the jsp return this mensseger. > > Tanks a lot > > Mario Coelho > > ___ > 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] Error
Hi Some one know what is wrong? 500 Servlet Exception javax.servlet.ServletException: too many servlet includesI use tomcat and I like to change to resin.But the jsp return this mensseger.Tanks a lotMario Coelho___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Error using custom log formatter
On Dec 7, 2006, at 6:05 PM, jason rutherglen wrote: > > Where org.apache.solr.cluster.ClusterLogFormatter extends > java.util.logging.Formatter. Get this error: > > [17:49:24.453] com.caucho.config.LineConfigException: WEB-INF/ > web.xml:16: java.l > ang.IllegalAccessException: Class > com.caucho.config.BeanTypeStrategy can not acc > ess a member of class java.util.logging.Formatter with modifiers > "protected" > I've added this as a bug report. It definitely looks like an introspection issue, but I'm not sure why the introspection would not be allowed. -- Scott > -- > > > > package org.apache.solr.cluster; > > import java.util.logging.*; > import java.io.*; > import java.text.*; > import java.util.Date; > import java.sql.SQLException; > import java.util.concurrent.locks.*; > import org.apache.commons.lang.exception.*; > import org.apache.commons.dbutils.DbUtils; > > /** > * Prints out full stack traces of all nested exceptions > * > * @author jasonr > */ > public class ClusterLogFormatter extends java.util.logging.Formatter { > Date dat = new Date(); > private final static String format = "{0,date} {0,time}"; > private MessageFormat formatter; > private ReentrantLock lock = new ReentrantLock(); > > private Object args[] = new Object[1]; > > public static void main(String[] args) { > LogManager logManager = LogManager.getLogManager(); > //logManager. > } > > // Line separator string. This is the value of the line.separator > // property at the moment that the SimpleFormatter was created. > private String lineSeparator = (String) > java.security.AccessController.doPrivileged( > new sun.security.action.GetPropertyAction > ("line.separator")); > > > public ClusterLogFormatter() { > super(); > } > > public String format(LogRecord record) { > lock.lock(); > try { > StringBuffer sb = new StringBuffer(); > // Minimize memory allocations here. > dat.setTime(record.getMillis()); > args[0] = dat; > StringBuffer text = new StringBuffer(); > if (formatter == null) { > formatter = new MessageFormat(format); > } > formatter.format(args, text, null); > sb.append(text); > sb.append(" "); > if (record.getSourceClassName() != null) { > sb.append(record.getSourceClassName()); > } else { > sb.append(record.getLoggerName()); > } > if (record.getSourceMethodName() != null) { > sb.append(" "); > sb.append(record.getSourceMethodName()); > } > sb.append(lineSeparator); > String message = formatMessage(record); > sb.append(record.getLevel().getLocalizedName()); > sb.append(": "); > sb.append(message); > sb.append(lineSeparator); > if (record.getThrown() != null) { > Throwable throwable = record.getThrown(); > if (throwable instanceof SQLException) { > SQLException sqlException = (SQLException)throwable; > StringWriter stringWriter = new StringWriter(); > DbUtils.printStackTrace(sqlException, new PrintWriter > (stringWriter)); > sb.append(stringWriter.toString()); > } else { > String string = ExceptionUtils.getFullStackTrace(throwable); > sb.append(string); > } > /** > * try { > * StringWriter sw = new StringWriter(); > * PrintWriter pw = new PrintWriter(sw); > * record.getThrown().printStackTrace(pw); > * pw.close(); > * sb.append(sw.toString()); > * } catch (Exception ex) { > * } > **/ > } > return sb.toString(); > } finally { > lock.unlock(); > } > } > } > > ___ > 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] Error using custom log formatter
When using the following: Where org.apache.solr.cluster.ClusterLogFormatter extends java.util.logging.Formatter. Get this error: [17:49:24.453] com.caucho.config.LineConfigException: WEB-INF/web.xml:16: java.l ang.IllegalAccessException: Class com.caucho.config.BeanTypeStrategy can not acc ess a member of class java.util.logging.Formatter with modifiers "protected" -- package org.apache.solr.cluster; import java.util.logging.*; import java.io.*; import java.text.*; import java.util.Date; import java.sql.SQLException; import java.util.concurrent.locks.*; import org.apache.commons.lang.exception.*; import org.apache.commons.dbutils.DbUtils; /** * Prints out full stack traces of all nested exceptions * * @author jasonr */ public class ClusterLogFormatter extends java.util.logging.Formatter { Date dat = new Date(); private final static String format = "{0,date} {0,time}"; private MessageFormat formatter; private ReentrantLock lock = new ReentrantLock(); private Object args[] = new Object[1]; public static void main(String[] args) { LogManager logManager = LogManager.getLogManager(); //logManager. } // Line separator string. This is the value of the line.separator // property at the moment that the SimpleFormatter was created. private String lineSeparator = (String) java.security.AccessController.doPrivileged( new sun.security.action.GetPropertyAction("line.separator")); public ClusterLogFormatter() { super(); } public String format(LogRecord record) { lock.lock(); try { StringBuffer sb = new StringBuffer(); // Minimize memory allocations here. dat.setTime(record.getMillis()); args[0] = dat; StringBuffer text = new StringBuffer(); if (formatter == null) { formatter = new MessageFormat(format); } formatter.format(args, text, null); sb.append(text); sb.append(" "); if (record.getSourceClassName() != null) { sb.append(record.getSourceClassName()); } else { sb.append(record.getLoggerName()); } if (record.getSourceMethodName() != null) { sb.append(" "); sb.append(record.getSourceMethodName()); } sb.append(lineSeparator); String message = formatMessage(record); sb.append(record.getLevel().getLocalizedName()); sb.append(": "); sb.append(message); sb.append(lineSeparator); if (record.getThrown() != null) { Throwable throwable = record.getThrown(); if (throwable instanceof SQLException) { SQLException sqlException = (SQLException)throwable; StringWriter stringWriter = new StringWriter(); DbUtils.printStackTrace(sqlException, new PrintWriter(stringWriter)); sb.append(stringWriter.toString()); } else { String string = ExceptionUtils.getFullStackTrace(throwable); sb.append(string); } /** * try { * StringWriter sw = new StringWriter(); * PrintWriter pw = new PrintWriter(sw); * record.getThrown().printStackTrace(pw); * pw.close(); * sb.append(sw.toString()); * } catch (Exception ex) { * } **/ } return sb.toString(); } finally { lock.unlock(); } } } ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest