Hi,

I am using CAS 3.4.3 with JPA 1.0 (Hibernate Vendor (JBoss 4.2.3)) due to
compability issues.

The unique step to deployment is to drop hibernate jar dependencies of cas
war overlay (pom.xml):

<build>
        <plugins>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <warName>cassso</warName>
                     <packagingExcludes>WEB-INF/lib/hibernate-core*,
WEB-INF/lib/log4j-1.2.15.jar,
                        WEB-INF/lib/hibernate-annotations*,
WEB-INF/lib/hibernate-jpa*,
                        WEB-INF/lib/hibernate-commons*,
WEB-INF/classes/META-INF/persistence.xml,
                        </packagingExcludes>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>resources</directory>
            </resource>
        </resources>
    </build>

Maybe it's not your case... but it's just a suggestion.

Just a tip ... the current implementation of the service registry manager
does not conform to the JPA specification. It has a dependency with
hibernate annotations.

Cheers,

Yuri Feitosa Negócio



On Fri, Nov 5, 2010 at 10:13 AM, Scott Battaglia
<[email protected]>wrote:

> I try to stay out of container wars :-)
>
> That said, the dev team probably has the most experience with Tomcat. We
> can make broad sweeping suggestions for other platforms but they're usually
> more from intuition rather than actual experience/knowledge. :-)
>
>
>
>
> On Fri, Nov 5, 2010 at 9:10 AM, Bryan Wooten <[email protected]>wrote:
>
>>  Hmmm,
>>
>>
>>
>> I found this:
>>
>>
>>
>> Glassfish V2.1.1 ships with JPA 1.0 support - in order to use JPA 2.0 on
>> this older server some overrides will be required.
>>
>>
>>
>> You can run JPA 2.0 including everything in the JPA 2.0 XSD for
>> persistence.xml in Glassfish V3
>>
>> You can run JPA 2.0 - but you are limited to the JPA 1.0 XSD for
>> persistence.xml in Glassfish V2.1
>>
>> Here: http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/glassfish
>>
>> As best I can tell CAS wants JPA 2.0 from the pom.xml:
>> <jpa.version>2.0-cr-1</jpa.version>
>>
>> So do you think I need to upgrade to Glassfish 3.x? Or would you recommend
>> we deploy on Tomcat?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Bryan Wooten
>>
>>
>>
>> [email protected]
>>
>> Work: 801.585.9323
>>
>> Cell: 801.414.3593
>>
>>
>>
>> *From:* Scott Battaglia [mailto:[email protected]]
>> *Sent:* Thursday, November 04, 2010 7:56 PM
>> *To:* [email protected]
>> *Subject:* Re: [cas-user] Still having problems getting was with service
>> manager to load
>>
>>
>>
>> It looks like its not finding the JPA2 drivers. Does GlassFish include an
>> older version of JPA?
>>
>>
>>
>> On Thu, Nov 4, 2010 at 5:09 PM, Bryan Wooten <[email protected]>
>> wrote:
>>
>> First I had NoClassDefFound errors for spring-jdbc. I fixed that by adding
>> spring-jdbc dependency to my overlay pom.xml. After that I got
>> NoClassDefFound errors for slf5j classe, so I added slf4j dependencies to my
>> pom.xml.
>>
>>
>>
>> Now I am get this:
>>
>>
>>
>> Error creating bean with name 'entityManagerFactory' defined in
>> ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Invocation of
>> init method failed; nested e
>>
>> xception is java.lang.NoSuchMethodError:
>> javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
>>
>>
>>
>> I am deploying to a Glassfish 2.1.1 server.
>>
>>
>>
>> Does anyone have any ideas?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Bryan Wooten
>>
>>
>>
>> [email protected]
>>
>> Work: 801.585.9323
>>
>> Cell: 801.414.3593
>>
>>
>>
>> --
>>
>> You are currently subscribed to [email protected] as: 
>> [email protected]
>>
>>
>>
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
>>
>> --
>>
>> You are currently subscribed to [email protected] as: 
>> [email protected]
>>
>>
>>
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>> --
>> You are currently subscribed to [email protected] as: 
>> [email protected]
>>
>>
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
> --
> You are currently subscribed to [email protected] as: [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to