war

converting multi war application to spring boot

此生再无相见时 提交于 2019-12-13 07:13:52
问题 I have a multi war application running on Weblogic, with application.xml and all. rewriting the web.xml for the first war was easy enough (i pretty much did the same as answered in this question How to migrate from traditional java web application (with web.xml) to spring boot?), but when I moved on to the other wars i realized i want a different classLoader and spring application context for each war. is there any suggestions on how to approach this? 来源: https://stackoverflow.com/questions

The calling class org.jboss.resteasy.cdi.CdiInjectorFactory is placed in multiple bean archives

天大地大妈咪最大 提交于 2019-12-13 06:31:09
问题 This question was asked before on stackoverflow but, was not appearing as the main question of the post. It was a secondary question. That's why I asked it on a new discussion. The aim is to have a better answer rate. I asked stackoverflow an advice before posting this question I try to run a deployment of an app with jetty 9.4.8. It is an angular java maven multi module app Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=

errors deploying WAR in root context on GlassFish 3.1

天大地大妈咪最大 提交于 2019-12-13 06:27:15
问题 I'm using GlassFish 3.1 on Mac. I did a clean GlassFish installation. I created a simple WAR with a index.jsp like so: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GlassFish JSP Page</title> </head> <body> <h1>Hello World!</h1> <p/> The current time is: <%= new java.util.Date().toString() %> <

Overriding WAR classes directory

一曲冷凌霜 提交于 2019-12-13 05:56:29
问题 If you use the Ant to create your WAR via the war task, then (as explained here) it will automatically create a WEB_INF/classes/ directory in the WAR. I would like to change the name of this generated classes/ directory to, say, classpath/ and can't figure out how. If this is possible, would someone provide a code example as well as a reference to the documentation that shows how to do this (I'm curious!). Thanks! 回答1: You shouldn't change the name of the classes to something else. The

LifeRay: When I build the war, my changes are removed

▼魔方 西西 提交于 2019-12-13 04:43:37
问题 I have setted up a liferay environament with eclipse and tomcat (first time I use any of them), And I want to make some changes, for example, I add a <p> in the end of the navigation.vm : But when I build the war, like this: My change dissapears: Any idea what I'm doing wrong? 回答1: probably you're trying to edit the portal-normal.vm under yourTheme/docroot/templates but you can't. You have to create a new folder called _diffs under yourTheme/docroot in which you copy the folders structure of

Can't redeploy .WAR that uses Axis in Glassfish 3

ぐ巨炮叔叔 提交于 2019-12-13 03:24:34
问题 I have a J2EE web application that instantiates an Apache Axis SOAP client proxy as a Spring bean. When I deploy the application into a Glassfish 3 server for the first time, it succeeds. However, if I undeploy and redeploy the application, I get the following error (at the bottom of the Spring stacktrace): Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [com.foo.bar.FooServicePortType com.foo.bar.config

How to deploy Spring Cloud Gateway 2.1 on Jboss or Tomcat?

…衆ロ難τιáo~ 提交于 2019-12-13 03:06:02
问题 I want to a deploy Spring Cloud Gateway but it is built on Spring Framework 5, Project Reactor. Can I create a WAR file and deploy it on a traditional application server such as Jboss or Tomcat. The Spring documentation in this page says it is possible. Spring WebFlux is supported on Tomcat, Jetty, Servlet 3.1+ containers Note: this is Spring Cloud Gateway project link https://spring.io/projects/spring-cloud-gateway 回答1: I don't think this is possible, as Spring Cloud Gateway is itself a

Tomcat server not working anymore after a stop and restart

橙三吉。 提交于 2019-12-13 02:49:55
问题 I've got an error related to tomcat server. I shut down my server (took a while) and then when a start the server back, an error appears : org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.amadeus.security.CCDVAccess@2a9cce4a] with key 'CCDVAccess'; nested exception is javax.management.InstanceAlreadyExistsException: com.amadeus.security:name=CCDVAccess org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)

Weblogic new deployment reverting to old code

北城以北 提交于 2019-12-13 01:53:22
问题 I am currently trying to deploy code from .WAR file using a Weblogic Console. Currently it reverts to the Deployment that I had already deleted. No matter what changes I make it still reverts to the old code. What can I do to deploy my new code. 回答1: Stop your managed server (if that's where it's deployed) Stop the old deployment Delete the old deployment Activate changes Install the new war file Activate changes If the above doesn't work, it is possible there is some caching going on. If

how can I check which class/jar is causing “Cannot inherit from final class” during WAR deployment?

落花浮王杯 提交于 2019-12-12 19:18:23
问题 I'm deploying a WAR file to a Weblogic 12.1.2 server on Windows 7 (also tried Mac OS X). I'm getting an exception (see below). it looks like one of the classes is referring to an older/newer version of some parent class, which is coming from some duplicated jar. how can I find which class or jar file is causing it? my WAR file has a bunch of Jars in WEB-INF/lib... <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java