war

How to deploy war file in Filezilla FTP?

你离开我真会死。 提交于 2019-12-11 08:17:54
问题 How to deploy war file in Filezila FTP? 回答1: Filezilla is only for uploading the WAR, not deploying it. Use Filezilla to connect to the server via FTP. Find your application server's web apps deployment directory (for instance, in Tomcat this is often the "webapps" directory). Upload the WAR file there. Then follow the deployment instructions for your particular application server. 来源: https://stackoverflow.com/questions/2921307/how-to-deploy-war-file-in-filezilla-ftp

Resolve Jboss data source configuration issue

牧云@^-^@ 提交于 2019-12-11 07:45:52
问题 After configuring the datasources in the jboss 5.0 AS , I deployed the jbpm web application . Im getting the the exception. java.lang.RuntimeException: mapped-name is required for simpleds of deployment webapple.war at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHand at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325) The web.xml configuration is <resource-env-ref> <resource-env-ref-name>simpleds<

Moving contents of META-INF/context.xml to tomcat/conf

好久不见. 提交于 2019-12-11 07:35:10
问题 We are trying to take the environment specific configuration settings out of our war files, so we can deploy the same war file to dev/test/prod tomcat servers and not have to change the contents of the war config file. When I move the META-INF/context.xml for the database connection to the conf/server.xml the database connection no longer works, with the following error, anyone know why this would be? server.xml: <GlobalNamingResources> .... <Resource url="jdbc:oracle:thin:@hostname:1521

Declare dependency to war file in Gradle

↘锁芯ラ 提交于 2019-12-11 07:18:55
问题 Based on the gradle docs, to define external jars means adding to build.gradle the following snippet (considering you have {project_root}/libs/foo.jar) in place: dependencies { runtime files('libs/foo.jar') } However, using the same dependency declaration for *.war files doesn't work. Is this even possible? The project I'm trying to depend on builds to a war file. 回答1: Since war layout is different from jar file standard layout, it's not possible to declare war a dependency file to a java

Tomcat error with deployment

寵の児 提交于 2019-12-11 05:58:36
问题 I am trying to deploy a war file to tomcat 6.0.27. This war file has spring conf and java beans and also the regular html etc. This war file deploys successfully on a tomcat installed on a windows platform. However when trying to deploy to Linux, following is the error that is displayed in the tomcat logs: (and the application is not deployed) SEVERE: ContainerBase.addChild: start: LifecycleException: Error initializaing : java.lang.IllegalArgumentException: The archive [jar:file:/var/lib

Java Web Application Error - Can't find classes that are located in WEB-INF/classes directory

我们两清 提交于 2019-12-11 05:33:49
问题 I first start up my WebSphere Application Server 8.5.5.0 with no applications deployed to it, it starts up fine, text is below. Launching defaultServer (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130510-0831) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51-b13 (en_US) [AUDIT ] CWWKE0001I: The server defaultServer has been launched. [INFO ] CWWKE0002I: The kernel started after 1.714 seconds [INFO ] CWWKF0007I: Feature update started. [AUDIT ] CWWKZ0058I: Monitoring dropins for

Deploy GWT .war with Servlet in Tomcat

青春壹個敷衍的年華 提交于 2019-12-11 04:45:43
问题 I've been following the tutorial on building a sample GWT Application: http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html I then wanted to try exposing a servlet for serving up some JSON data according to this tutorial: http://code.google.com/webtoolkit/doc/latest/tutorial/JSON.html Both tutorials are very clear and I had no issues getting it to work in Eclipse running in development mode. The way I'm testing it is by going to this URL: http://localhost:8888

Spring: how to close a shared context

こ雲淡風輕ζ 提交于 2019-12-11 03:58:35
问题 This question describes a nice way to have a shared Spring ApplicationContext as a parent to the ApplicationContexts several WAR within an EAR. (See also ContextLoader.loadParentContext.) This works fine but for the fact that ApplicationContext.close() is never called on this parent context when the server is shut down. This leads in our case to the server never shutting down, since the parent ApplicationContext contains a ThreadPool and starts ehcache, which also starts a couple of (non

Disable scanning of CDI beans in WAR

一世执手 提交于 2019-12-11 03:36:20
问题 I have WAR package with CDI beans. Deployment of the package is very slow because every time during deployment the package is scanned for CDI beans. Is there any option to disable this process? 回答1: The correct way is to disable discovery in the beans.xml of the relevant archive: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp

Spring Boot War file gets 404 on ec2

大兔子大兔子 提交于 2019-12-11 03:34:23
问题 I put together a simple Eclipse Spring Boot Rest program. Just a couple of endpoints that return some strings. I am building it with the Eclipse Gradle plug-in. No problems, it runs fine in the Eclipse provided Tomcat instance. I also ran it on a native windows Tomcat. I deployed the .war file using the tomcat web application manager using the deploy feature. Runs fine. I then deployed an ec2 ubuntu instance and again used the tomcat web application manager and upload the .war file. The rest