Re: [Resin-interest] Error while deploying a web application on Resin 3.1.6

2008-07-11 Thread George Wei

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

2008-07-11 Thread Emil Ong
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

2008-07-10 Thread George Wei

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

2008-07-10 Thread Scott Ferguson

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


[Resin-interest] Error while deploying a web application on Resin 3.1.6

2008-07-09 Thread George Wei

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