After deploying my grails application to wildfly i am getting this error wherever i am using base64 class
java.lang.NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64
Related
I tried running my Grails 3.3.2 application on Java 9 and for the most part the application worked. Mail (using this plugin: org.grails.plugins:mail:2.0.0), however, doesn't work, so cannot reset password, for example.
Attempting to send mail results in this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException
I believe the issue is with Spring Boot and not the plugin itself. It seems there is a problem with bean creation and Java 9 that Spring Boot addresses is their 2.x version (Grails 3.3.2 runs on Spring Boot 1.5.x).
Just wondering what the time frame is for Grails and Java 9. Thanks!
The roadmap is for forth quarter this year (2018). Grails 4 will support Spring Boot 2 (which has just been released) and is the first version of Spring Boot which will support Java 9.
https://www.grails3book.com/blog/2018/2018-03-29-grails-jdk-9.html
While deploying stream I am getting below error and deployment is failed
java.lang.RuntimeException: Exception trying to list configuration properties for application jar:file:/C:/Users/atp1rzs/.m2/repository/net/atpco/rpc/route-path-cache-maintenance/0.0.1-SNAPSHOT/route-path-cache-maintenance-0.0.1-SNAPSHOT.jar!/
at org.springframework.cloud.dataflow.configuration.metadata.BootApplicationConfigurationMetadataResolver.listProperties(BootApplicationConfigurationMetadataResolver.java:140) ~[spring-cloud-dataflow-configuration-metadata-1.2.3.BUILD-SNAPSHOT.jar!/:1.2.3.BUILD-SNAPSHOT]
at
Caused by: java.lang.IllegalStateException: Error while creating ClassLoader for jar:file:/C:/Users/atp1rzs/.m2/repository/net/atpco/rpc/route-path-cache-maintenance/0.0.1-SNAPSHOT/route-path-cache-maintenance-0.0.1-SNAPSHOT.jar!/
at org.springframework.cloud.dataflow.configuration.metadata.BootClassLoaderFactory$ClassLoaderExposingLauncher.createClassLoader(BootClassLoaderFactory.java:86) ~[spring-cloud-dataflow-configuration-metadata-1.2.3.BUILD-SNAPSHOT.jar!/:1.2.3.BUILD-SNAPSHOT]
I am trying to deploy the Struts 2.1.6 EAR file into Websphere 7 and getting the error. I already updated validators.xml with the latest (Struts) DTDs but still facing an issue.
I am attempting to deploy a war (a grails 1.3.7 app) to an jboss 6 which had been in a jboss 5 environment. The war is not dependent on jboss services or j2ee (it could have been deployed straight to tomcat). When deploying to jb6, I get the following error message:
14:54:17,281 ERROR [AbstractKernelController] Error installing to Real:
name=vfs:///opt/jboss-6.0.0.Final/server/jbossweb-standalone/deploy/pip.war
state=PreReal mode=Manual requiredState=Real:
org.jboss.deployers.spi.DeploymentException: Error during deploy:
vfs:///opt/jboss-6.0.0.Final/server/jbossweb-standalone/deploy/app.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
...
...
...
Caused by: java.lang.RuntimeException: Neither any mapped-name/lookup/jndi-name
specified nor any ResourceProvider could process resource-env-ref named env/cxf
of type org.apache.cxf.Bus
It seems as though JBoss support services are not able to get created, but don't see any underlying problems preventing the service creation. Also some other web apps are deployed to this instance of jboss, so the overall installation is "sound". I've done some investigation, but not sure where to go next. Any ideas as or pointers as to the likely problem?
This looks like a problem with JNDI, you have a reference to a JNDI in your project, more than likely your web.xml, this resource is not defined as a service in your Jboss server deploy directory, for instance a jdbc.xml definition you are relying on.
When I run my grails application locally under Tomcat, I get no errors. When I deploy my WAR on my remote web server, I get this exception when I try to make an AJAX request that uses HTTPBuilder.
How could this be happening?
Are you running your application is an IDE like STS? if so maybe the Jars for HTTPBuilder are in your build/run path but are not in your lib directory for the Grails app OR not listed as a "Production" Dependency.