In old releases we could load certain config files by placing them in the
webapps/WEB-INF/classes directory. Not sure whether that's a viable option
anymore though.

Thanks,
Hiranya

On Mon, Mar 5, 2012 at 6:30 PM, Lakmali Baminiwatta <[email protected]>wrote:

> Hi all,
>
> I am working on extending smooks functionality on WSO2 ESB Smooks
> Mediator. When implementing JPA support with hibernate on smooks mediator,
> I am facing an issue of not being able to find the persistence provider. I
> placed the persistence.xml file inside a jar which contains the entity
> classes (as META-INF/persistence.xml). I added that jar to ESB
> repository/components/lib location. Also added all the other required jars
> (hibernate-entitymanager, persistence-api, etc) to the same location. But
> when executing a sample service I get this error as,
>
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named db
>     at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89)
>     at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
>
> It seems that although hibernate-entitymanager jar is added to the
> repository/components/lib Smooks can not find the Persistence Provider.
>
> This similar problem had been encountered sometime back and provided with
> a solution on a support issue [1]. There an additional script had been
> added to wso2server.sh in order to add all the jars inside  
> repository/components/lib
> to the classpath. As the client has responded the solution has worked. But
> it seems that solution doesn't work in trunk now. We exactly do not know
> how that solution worked at that time and why isn't that working now.
>
> So I appreciate any assistance, comments regarding this issue.
>
> Also I came to know that WSO2 BPS has implemented JPA functionality and I
> would like to know how you have been supported this ?
>
>
> [1] 
> https://support.wso2.com/jira/browse/THOMREUTDEVSPRT-9<https://support.wso2.com/jira/browse/THOMREUTDEVSPRT-9>
>
>
> Thank you!
>
> regards,
> Lakmali
> *
> *
>
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to