Dear all,

I've created an AppFuse Struts 2 application (Using AppFuse 2.1) and
deployed it on Tomcat 6.0.x, it works ok. Then I tried to deploy the same
war file on resin, I got the following error messages:

2008-7-10 10:41:57 com.caucho.boot.WatchdogProcess run
Info: WatchdogProcess[Watchdog[],1] starting Resin
[10:41:57.828] {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.

Starting Resin on Thu, 10 Jul 2008 10:42:02 +0800 (CST)

[10:42:08.046] {main} Proxy Cache disk-size=1024M memory-size=64M
[10:42:08.156] {main} PingThread[] starting, checking []
[10:42:08.609] {main}
[10:42:08.609] {main} Windows 2003 5.2 x86
[10:42:08.625] {main} Java(TM) 2 Runtime Environment, Standard Edition
1.5.0_10-b03, GBK, zh
[10:42:08.625] {main} Java HotSpot(TM) Client VM 1.5.0_10-b03, 32, mixed
mode, Sun Microsystems Inc.
[10:42:08.625] {main} user.name: Administrator
[10:42:08.625] {main} resin.home = E:\Applications\resin-pro-3.1.6
[10:42:08.625] {main} resin.root = E:\Applications\resin-pro-3.1.6
[10:42:08.625] {main} resin.conf =
/E:/Applications/resin-pro-3.1.6/conf/resin.conf
[10:42:08.906] {main}
[10:42:08.906] {main} jmx-remote disabled.  jmx-remote requires at least one
enabled management <user>
[10:42:09.906] {main} WebApp[http://localhost:8080] active
[10:42:10.390] {main} WebApp[http://localhost:8080/resin-admin] active
[10:42:10.390] {main} expanding
/E:/Applications/resin-pro-3.1.6/webapps/openstore.war to
/E:/Applications/resin-pro-3.1.6/webapps/openstore
[10:42:18.250] {main}
file:/E:/Applications/resin-pro-3.1.6/webapps/openstore/WEB-INF/classes/META-INF/persistence.xml:5:
com.caucho.amber.cfg.PersistenceUnitConfig.setProvider():
com.caucho.config.ConfigRuntimeException: java.lang.ClassNotFoundException:
org.hibernate.ejb.HibernatePersistence in EnvironmentClassLoader
[web-app:/openstore]
[10:42:18.250] {main}
[10:42:18.250] {main} 3:
[10:42:18.250] {main} 4:     <persistence-unit
name="ApplicationEntityManager" transaction-type="RESOURCE_LOCAL">
[10:42:18.250] {main} 5:        
<provider>org.hibernate.ejb.HibernatePersistence</provider>
[10:42:18.250] {main} 6:        
<class>com.opentide.openstore.model.User</class>
[10:42:18.250] {main} 7:        
<class>com.opentide.openstore.model.Role</class>
...

persistence.xml is created by AMP and I've never modified it. Its content is
as follows:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"; version="1.0">

    <persistence-unit name="ApplicationEntityManager"
transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <class>com.opentide.openstore.model.User</class>
        <class>com.opentide.openstore.model.Role</class>
    </persistence-unit>

    <!-- WARNING: This file's file original source is at
web/common/src/main/resources/META-INF. The
        META-INF directory is included in the jsf, spring, struts and
tapestry projects using svn:externals.
        If you need to modify this file, please do so in
web/common/src/main/resources/META-INF, check it
        in, and then "svn up" for the other modules. -->
</persistence>

What's the problem? Thanks for any clues.

Regards,
George
-- 
View this message in context: 
http://www.nabble.com/Error-while-deploying-an-AppFuse-Struts-2-application-on-Resin-3.1-tp18375182s2369p18375182.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to