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 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