JSF 2.0,JPA2.0 eclipseLink 2.5.1 7 EJB 3.0 application Migrating from websphere 8.0 to liberty 8.5.5.9 profile - jpa

JSF 2.0,JPA2.0 eclipseLink 2.5.1 7 EJB 3.0 application Migrating from websphere to liberty profile
getting below error while migrating from websphere to websphere liberty profile
[ERROR ] CWWKZ0002E: An exception occurred while starting the
application fagerEar. The exception message was:
com.ibm.ws.container.service.state.StateChangeException:
java.lang.NoClassDefFoundError: org.slf4j.Logger

Your slf4j jar which contains org.slf4j.Logger class is missing in the MANIFEST.MF file of the project which is trying to load it. If this error is occurring in your Web project, please add the slf4j jar in the MANIFEST.MF of your web project.

Related

OpenJPA cannot read a persistence.xml document with JPA 2.1 and weblogic version 12.1.3

I am getting below error, I have deployed my ear file using JPA2.1, weblogic version 12.1.3 and am using EclipseLink 2.6.4.
EclipseLink jars, persistence jar part of weblogic pre path, also I have set TOPLINK on weblogic server.
Note: I have also copied com.oracle.weblogic.jpa21support_1.0.0.0_2-1 to weblogic pre path.
Plese guide some pointers on the below error.
This version of OpenJPA cannot read a persistence.xml document with
a version different from "1.0". Found: version "2.1" in "zip:/tgwjpa/tgwjpa-ejb-1.0-SNAPSHOT.jar!/META-INF/persistence.xml".

not able to deploy ear into jboss 6 which is working in jboss4

When we deploy ear in jboss 4 it is working ,But when we try to deploy same ear in jboss 6 facing issue like below
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) [:1.6.0_45]
at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:89) [:2.5.6.SEC01]
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70) [:2.5.6.SEC01]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [:2.5.6.SEC01
Try to remove xml-apis and xercesImp dependencies. These dependencies are provided by JBoss. If it doesn't help, could you post some other informations? pom.xml or a dependency tree. Here is a link for the supported componets by JBoss EAP 6: https://access.redhat.com/articles/112673#EAP_6

Resteasy migration from JBoss 7.1.1 to Wildfly 9.0 special tasks?

After ensuring that all the libraries (only newer) seemed to exist on Wildfly 9, and checking the RestEasy migration page, I tried to deploy an app that works find on AS 7.1.1 (uses Resteasy 2.3.2) to WF9 (Resteasy 3.0.11) but it was unable to deploy due to this error:
Caused by: java.lang.NoClassDefFoundError: org/jboss/resteasy/core/ResourceMethod
Caused by: java.lang.ClassNotFoundException: org.jboss.resteasy.core.ResourceMethod from [Module \\\"deployment.CodecMapper.war:main\\\" from Service Module Loader]\"}}"
I jarfinded the class and looked in the catalog of resteasy-jaxrs-3.0.11-Final.jar but didn't find it (it was in the 2.3.2 version). Is it in a new jar or failed dependency? Or is this a migration issue I'll need to address in my code (even though it's not listed as one on the Resteasy migration page)?
I have also reviewed the Wildfly migration page specific to Resteasy, but I don't see any changes required.

Not loading the persistence provider class in runtime

I have created RestService enabled with JPA(Generic 2.0 version). Using jersey jars and hibernate entity manager jar as dependencies.
Deployment is successfull in tomcat. But when any transaction is processed, getting below exception in runtime.
java.lang.ClassNotFoundException: javax.persistence.spi.PersistenceProvider
What could be the issue, not loading the persistence provider class even it is in the classpath ?
What do you mean with classpath? The library/jar of the Persistence Provider Hibernate and the JPA (javax.persistence) have to be in the ear/war file so that Tomcat is able to access them.
How do you create that ear/war file? With Maven? Then you have to set the dependencies at least to runtime.

icefaces project deployment error : org.apache.catalina.LifecycleException: java.lang.NoSuchFieldError: SKIP_ITERATION

I'm trying to make new icefaces project which generated using: ICEfaces 3.3.0 project integration for Eclipse.
I didn't modify anything on the project. but when i try to run on the server, i got an error:
cannot Deploy MyProject
Deployment Error for module: MyProject:
Exception while loading the app : java.lang.Exception:
java.lang.IllegalStateException: ContainerBase.addChild:
start: org.apache.catalina.LifecycleException:
java.lang.NoSuchFieldError: SKIP_ITERATION
before that, I'm using ICEfaces 3.2.0 project integration for Eclipse and no problem.
I'm using Eclipse Indigo, GlassFish server 3, Mojarra 2.1.6
Thanks before
java.lang.NoSuchFieldError: SKIP_ITERATION
As per the javadoc, that field was added in JSF 2.1.
So, this error suggests that your webapp's runtime classpath is polluted with a JSF 2.0 API JAR file. Perhaps in the /WEB-INF/lib? Get rid of it. Glassfish already ships with JSF bundled, you don't necessarily need to supply your own. Or, from the other side on, this can also happen if you deploy to an ancient Glassfish instance which bundles JSF 2.0 and JSF 2.1 was actually bundled in your webapp in an attempt to upgrade it. If so, then you should edited the Glassfish config file sun-web.xml or glassfish-web.xml, depending on GF version. See for detail the answer to this related question: How to update Mojarra version in GlassFish