GWT Upgrade from 2.3 to 2.8.1 - java

I am trying to upgrade my java web application from 2.3 to 2.8.1. Following are my jars in Pom xml:
antlr-3.1.1.jar
aopalliance-1.0.jar
aspectjweaver-1.5.2.jar
commons-cli-1.1y.jar
commons-codec-1.10.jar
commons-collection-3.2.1.jar
commons-configuration-1.9.jar
commons-dbcp-1.2.2.jar
commons-discovery-0.2.jar
commons-el-1.0.jar
commons-fileupload-1.2.2.jar
commons-httpclient-3.1.jar
commons-io-1.3.1.jar
commons-jexl-2.1.1.jar
commons-jxpath-1.3.jar
commons-Lang-2.6.jar
commons-lang3-3.5.jar
commons-logging-1.1.1.jar
commons-modeler-2.0.1.jar
commons-pool-1.4.jar
commons-vfs-1.0.jar
dom4j-1.6.1.jar
ehcache-core-2.5.0.jar
ews-java-api-2.0.jar
gwt-log-3.1.3-redhat-2.jar
gwt-servlet-2.8.1.jar
gwtupload-0.6.3-compat.jar
gwt-user-2.8.1.jar
gwt-visualization-1.1.1.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
hibernate-validator-4.0.2.GA.jar
hibernate-core-3.6.7.Final.jar
httpclient-4.4.1.jar
httpcore-4.4.1.jar
itext-2.1.5.jar
javassist-3.12.0.GA.jar
jdom-1.1.jar
jersey-client-1.9.1.jar
jersey-core-1.9.1.jar
jettison-1.2.jar
joda-time-2.0.jar
json-20080701.jar
jxl-2.6.8.jar
kxml2-2.3.0.jar
kxml2-min-2.3.0.jar
log4j-1.2.16.jar
logback-core-0.6.jar
lucene-core-2.4.1.jar
ojdbc6-11.2.0.4.jar
spring-aop-4.3.18.RELEASE.jar
spring-aspects-4.3.18.RELEASE.jar
spring-beans-4.3.18.RELEASE.jar
spring-context-support -4.3.18.RELEASE.jar
spring-context -4.3.18.RELEASE.jar
spring-core -4.3.18.RELEASE.jar
spring-expression -4.3.18.RELEASE.jar
spring-instrument -4.3.18.RELEASE.jar
spring-jdbc -4.3.18.RELEASE.jar
spring-jms -4.3.18.RELEASE.jar
spring-orm -4.3.18.RELEASE.jar
spring-oxm -4.3.18.RELEASE.jar
spring-test -4.3.18.RELEASE.jar
spring-tx -4.3.18.RELEASE.jar
poi-3.9.jar
poi-examples-3.9.jar
poi-excelant-3.9.jar
poi-ooxml-3.9.jar
poi-ooxml-schemas-3.9.jar
poi-scratchpad-3.9.jar
saaj-api-1.3.jar
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar
smartgwt-3.0.jar
smartgwt-skins-3.0.jar
stax-1.2.0.jar
validation-api-1.0.0.GA.jar
groovy-swing-2.4.7.jar
velocity-1.6.1.jar
wsdl4j-1.6.3.jar
wstx-asl-3.2.7.jar
xmlpull-1.1.3.1.jar
xstream-1.4.6.jar
jcifs-1.3.17.jar
xmlbeans-2.3.0.jar
dhbcore-dhbcore.jar
com.ibm.mq-8.0.0.5.jar
com.ibm.mq.headers-8.0.0.5.jar
com.ibm.mq.jmqi-8.0.0.5.jar
com.ibm.mq.pcf-8.0.0.5.jar
com.ibm.mqjms-8.0.0.5.jar
com.ibm.mq.connector-7.5.0.5.jar
dhbcore-7.5.0.5.jar
mqcontext-2.3.jar
com.ibm.mq.commonservices-8.0.0.5.jar
isc-jakarta-oro-2.0.6.jar
isomorphic_applets-isomorphic_applets.jar
isomorphic_core_rpc-isomorphic_core_rpc.jar
isomorphic_sql-isomorphic_sql.jar
isomorphic_web_services-isomorphic_web_services.jar
mail-1.4.6.jar
jta-1.1.jar
gwt-maven-plugin-2.8.1
when I run the application from eclipse using “mvn gwt:run-codeserver”, it says http://127.0.0.1:9876 started and ready. But I see some errors before that:
Tracing compile failure path for type ‘...’: ERROR Line xxx: No source code is available for type org.slf4j.LoggerFactory; did you forget to inherit a required module?
I see several of them like above in the console. When I run http://127.0.0.1:9876 I see: GWT Code Server
Drag these two bookmarklets to your browser’s bookmark bar: Dev Mode On Dev Mode Off
Visit a web page that uses one of these modules: <MY_MODULE>
When I click on my module, I see “this module hasn’t been compiled yet”. Please advise.

Related

Nosuchmethoderror:org.glassfish.jersey.internal.l10n.LocalizableMessageFactory

I m working with jersey2.29 and Spring 4 to develop a web application. The following are my dependencies.
When starting Tomcat server 8 server, it doesn't start and I get the following error
Caused by: java.lang.NoSuchMethodError: org.glassfish.jersey.internal.l10n.LocalizableMessageFactory.(Ljava/lang/String;Lorg/glassfish/jersey/internal/l10n/LocalizableMessageFactory$ResourceBundleSupplier;)V
at org.glassfish.jersey.server.spring.LocalizationMessages.(LocalizationMessages.java:19)
at org.glassfish.jersey.server.spring.SpringWebApplicationInitializer.onStartup(SpringWebApplicationInitializer.java:46)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
I tried adding all the latest jar files in WEB-INF/lib
You not have minimal dependency for jersey-spring4 which is Spring 4.3.8
org.springframework spring-aop 4.3.8.RELEASE jar Apache License, Version 2.0
org.springframework spring-beans 4.3.8.RELEASE jar Apache License, Version 2.0
org.springframework spring-core 4.3.8.RELEASE jar Apache License, Version 2.0
org.springframework spring-web 4.3.8.RELEASE jar Apache License, Version 2.0
You should use spring-jersey3 jar

Cannot Install Eclipse UIMA Plugin

I am following the docs at
http://uima.apache.org/downloads/releaseDocs/2.2.2-incubating/docs/html/overview_and_setup/overview_and_setup.html#ugr.ovv.eclipse_setup
when I try to install the UIMA tools plugin, I get
Cannot complete the install because one or more required items could not be found.
Software being installed: UIMA Tools (includes Runtime) 2.8.1 (org.apache.uima.tools.feature.group 2.8.1)
Missing requirement: UIMA Eclipse: uimaj-ep-jcasgen 2.3.1 (org.apache.uima.jcas.jcasgenp 2.3.1) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.4.0 (org.apache.uima.jcas.jcasgenp 2.4.0) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.4.1 (org.apache.uima.jcas.jcasgenp 2.4.1) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.4.2 (org.apache.uima.jcas.jcasgenp 2.4.2) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.5.0 (org.apache.uima.jcas.jcasgenp 2.5.0) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.6.0 (org.apache.uima.jcas.jcasgenp 2.6.0) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.7.0 (org.apache.uima.jcas.jcasgenp 2.7.0) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.8.0 (org.apache.uima.jcas.jcasgenp 2.8.0) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Missing requirement: Apache UIMA Eclipse: uimaj-ep-jcasgen 2.8.1 (org.apache.uima.jcas.jcasgenp 2.8.1) requires 'package org.eclipse.core.internal.compatibility 0.0.0' but it could not be found
Cannot satisfy dependency:
From: UIMA Tools (includes Runtime) 2.8.1 (org.apache.uima.tools.feature.group 2.8.1)
To: org.apache.uima.jcas.jcasgenp 0.0.0
where can I install this package
org.eclipse.core.internal.compatibility 0.0.0'
so that I can then install
uimaj-ep-jcasgen 2.8.1 (org.apache.uima.jcas.jcasgenp 2.8.1)
I am using Eclipse Neon and was able to install the Eclipse EMF tools for Neon.
Solved it by:
copying the content of $UIMA_HOME/eclipsePlugins/* to $ECLIPSE_HOME/eclipse/plugins/ ( where $UIMA_HOME is where you installed the UIMA SDK
and $ECLIPSE_HOME is where you installed eclipse)
Then running eclipse with "-clean"
Note: Using Eclipse neon on linux and uima 2.9

java.lang.NoSuchMethodError: in weblogic

when making a deployment in weblogic I get the following error.
java.lang.NoSuchMethodError: javax/validation/spi/ConfigurationState.getParameterNameProvider()Ljavax/validation/ParameterNameProvider;
Do I exclude any dependencies?
I think the problem is bean-validator
pom.xml
jersey-guava-2.6.jar
jersey-client-2.6.jar
jersey-common-2.6.jar
jersey-server-2.6.jar
jersey-spring3-2.6.jar
jersey-media-json-jackson-2.6.jar
jersey-container-servlet-core-2.6.jar
bean-validator-2.2.0.jar
novedades-validation-api-1.0.0.GA.jar
hibernate-validator-4.2.0.Final.jar
validation_1.0_spec-1.1.jar
hibernate-core-3.6.7.Final.jar
transactions-hibernate3-3.7.0.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
hibernate-entitymanager-3.6.7.Final.jar
hibernate-commons-annotations-3.2.0.Final.jar
weblogic.xml
<container-descriptor>
<prefer-application-packages>
<package-name>org.hibernate.*</package-name>
<package-name>javax.validation.*</package-name>
</prefer-application-packages>
<prefer-application-resources>
<resource-name>javax.validation.*</resource-name>
<resource-name>org.hibernate.*</resource-name>
</prefer-application-resources>
</container-descriptor>
Thank you
This issue can occur due to incompatible version of validation api being used.
Also check if there are 2 versions of validation api in the class path.
Run a mvn dependency:tree command to check for inter dependencies.

maven module, Connect persistance.xml with Spring

I realize an App which I have a project father and 4 project module:
-persistance
--META-INF/persistence
--pom.xml
-business
--pom.xml
-controller
--pom.xml
-web
-- pom.xml
SOLVED: src/resources/META-INF/persistance.xml
Thank you.
Add your persistence.xml
project/src/main/resources/META-INF/persistence.xml

java.lang.NoClassDefFoundError: javax/el/ELException

I am working on a web application and I have been facing this issue for a while after looking at multiple post I still was unable to solve this issue. I'm using tomcat 7.0.23 which provides el-api which i believe is the jar thought to be missing. I have not included any jar files in the WEB-INF/lib folder at all I am adding all of my dependencies through pom.xml because of maven. I have attempted all of the possible quick fixes i could think of including maven clean/install server clean(multiple times), project clean, adding tomcat to the targeted runtimes. in my build path is tomcat, jdk1.6, and maven)
The pom.xml and web.xml files that I am using are identical my other team members and they are currently working so i don't believe the issue is there.
Here is the error I am getting when starting the server
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: javax/el/ELException
at org.apache.myfaces.webapp.AbstractFacesInitializer._createFacesContext(AbstractFacesInitializer.java:403)
at org.apache.myfaces.webapp.AbstractFacesInitializer.initStartupFacesContext(AbstractFacesInitializer.java:376)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:105)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: javax.el.ELException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 13 more
these are the dependices after a maven clean/ install
activation-1.1.jar
antlr-2.7.7.jar
aopalliance-1.0.jar
asm-3.3.1.jar
captcha-0.0.1-SNAPSHOT.jar
cmu_time_awb-0.0.1-SNAPSHOT.jar
cmu_us_kal-0.0.1-SNAPSHOT.jar
cmudict04-0.0.1-SNAPSHOT.jar
cmulex-0.0.1-SNAPSHOT.jar
cmutimelex-0.0.1-SNAPSHOT.jar
commons-beanutils-1.8.3.jar
commons-cli-1.2.jar
commons-codec-1.3.jar
commons-collections-3.2.1.jar
commons-digester-1.8.1.jar
commons-el-1.0.jar
commons-fileupload-1.2.1.jar
commons-io-1.3.1.jar
commons-lang-2.6.jar
commons-logging-1.1.1.jar
commons-pool-1.5.4.jar
commons-validator-1.3.1.jar
cxf-api-2.7.0.jar
cxf-rt-bindings-soap-2.7.0.jar
cxf-rt-bindings-xml-2.7.0.jar
cxf-rt-core-2.7.0.jar
cxf-rt-databinding-jaxb-2.7.0.jar
cxf-rt-frontend-jaxrs-2.7.0.jar
cxf-rt-frontend-jaxws-2.7.0.jar
cxf-rt-frontend-simple-2.7.0.jar
cxf-rt-transports-http-2.7.0.jar
cxf-rt-ws-addr-2.7.0.jar
cxf-rt-ws-policy-2.7.0.jar
dom4j-1.6.1.jar
ejb3-persistence-1.0.2.GA.jar
en_us-0.0.1-SNAPSHOT.jar
freemarker-2.3.9.jar
freetts-0.0.1-SNAPSHOT.jar
freetts-jsapi10-0.0.1-SNAPSHOT.jar
geronimo-javamail_1.4_spec-1.7.1.jar
hibernate-annotations-3.4.0.GA.jar
hibernate-commons-annotations-3.1.0.GA.jar
hibernate-core-3.3.1.GA.jar
javassist-3.4.GA.jar
javax.ws.rs-api-2.0-m10.jar
jaxb-impl-2.1.13.jar
jcaptcha-1.0-mod-0.0.1-SNAPSHOT.jar
jdom-1.1.jar
jettison-1.0.jar
jsf-facelets-1.1.6.jar
jta-1.1.jar
jtds-1.2.4.jar
junit-4.7.jar
jxl-2.6.12.jar
log4j-1.2.17.jar
mail-1.4.5.jar
myfaces-api-2.1.0.jar
myfaces-impl-2.1.0.jar
neethi-3.0.2.jar
oro-2.0.8.jar
primefaces-3.3.jar
slf4j-api-1.6.6.jar
slf4j-log4j12-1.6.6.jar
spring-aop-3.0.6.RELEASE.jar
spring-asm-3.0.6.RELEASE.jar
spring-batch-core-2.0.3.RELEASE.jar
spring-batch-infrastructure-2.0.3.RELEASE.jar
spring-beans-3.0.6.RELEASE.jar
spring-context-3.0.6.RELEASE.jar
spring-context-support-3.0.6.RELEASE.jar
spring-core-3.0.6.RELEASE.jar
spring-expression-3.0.6.RELEASE.jar
spring-jdbc-3.0.6.RELEASE.jar
spring-ldap-core-1.3.1.RELEASE.jar
spring-ldap-core-tiger-1.3.1.RELEASE.jar
spring-ldap-ldif-batch-1.3.1.RELEASE.jar
spring-ldap-ldif-core-1.3.1.RELEASE.jar
spring-ldap-odm-1.3.1.RELEASE.jar
spring-orm-3.0.6.RELEASE.jar
spring-test-3.0.6.RELEASE.jar
spring-tx-3.0.6.RELEASE.jar
spring-web-3.0.6.RELEASE.jar
stax2-api-3.1.1.jar
tomahawk-1.1.6.jar
velocity-1.6.2.jar
woodstox-core-asl-4.1.4.jar
wsdl4j-1.6.2.jar
xml-apis-1.0.b2.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.3.jar
xpp3_min-1.1.4c.jar
xstream-1.3.jar
The “javax.el.ExpressionFactory” class belongs to the “el-api.jar” library, you can download it from Maven central repository.
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2</version>
</dependency>
and place it in tomcat/lib directory.
Alternative Solution

Categories