websphere 8 - jpa 2.1 spring boot with web sphere 8.5.5.8(full version) jdk 7 -


i followed approach suggested jeff https://gist.github.com/jeffsheets/aec3e94870ef903ce7efe33e00563d3c

i able overcome jpa 2.1 java.lang.classcastexception: com.ibm.websphere.persistence.persistenceproviderimpl incompatible javax.persistence.spi.persistenceprovider.

but following error servlet named com.x...jerseyconfig can not dynamically added because servlet configuration same name exists. using websphere 8.5.5.8 full version jdk 1.7 spring boot 1.4.0.m3.

in jerseyconfig.java

@component @propertysources(value = {     @propertysource("classpath:application.properties"),     @propertysource("classpath:validationmessages.properties")}) @dependson("hibernatepersistenceproviderresolver") public class jerseyconfig extends resourceconfig {     public jerseyconfig() {         packages("com.x.package");     } } 

thanks hints or pointers.

i did following make work (in addition @dependson mentioned previously).

1) load local class loader first , parent last.

2) add jvm property @ websphere appserver com.ibm.websphere.jaxrs.server.disableibmjaxrsengine true in order use jax rs shipped application. (which fixes servlet name exists). 3) after deploying when ran rest endpoint got following error @ run time.

uowmanager transaction processing failed; nested exception com.ibm.wsspi.uow.uowexception: java.lang.verifyerror: com/ibm/websphere/uow/uowsynchronizationregistry.registerinterposedsynch ronizat ion(ljavax/transaction/synchronization)v

to fix add spring.jta.enabled=false use webshpere jta. (ideally prefer override web sphere jta , use spring jta, need figure out way).


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -