war

Unable to deploy .war application to GlassFish 3.1.2

房东的猫 提交于 2019-12-07 19:30:21
问题 I have a .war application module, that can be successfully deployed without any exotic changes and server tuning. However, i was unable to deploy this app to GF 3.1.2: server throws following exception: java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NoSuchFieldError: theInstance What i am doing wrong? Has anyone suggest me something? Is there any additional settings

Are JSPs generally shipped as .jsp files , pre-compiled Java files or pre-compiled class files?

喜夏-厌秋 提交于 2019-12-07 16:34:37
问题 Is there a 'standard' practice for packaging JSPs when preparing WAR for Production Env? Are they included as ".jsp" files? Or are they included as pre-compiled Java files, or pre-compiled class files? 回答1: The Servelts/JSP spec says nothing about precompiling JSPs making this feature specific to container implementation . You can pre-compile for a specific container, say for Tomcat or for WebLogic and you will surely find Ant tasks to do so. Generally, when you package your app you know your

gradle custom war task webAppDirName

柔情痞子 提交于 2019-12-07 14:21:28
问题 I have a few gradle war tasks in my build file, and I would like to change the webAppDirName per war task. I tried this: task myWarTask(type: War) { ext.webAppDirName = 'src/anotherfolder/webapp' // also tried just webAppDirName version "" destinationDir = file("$buildDir/libs") baseName = 'myWarName' classpath = configurations.myWarConfiguration } But this is still pulling in the contents of src/main/webapp instead of src/anotherfolder/webapp Can I configure the webAppDirName on a per war

Is it possible/sensible to use the gradle war and ear plugin in the same project?

*爱你&永不变心* 提交于 2019-12-07 14:09:12
问题 I found that the ear plugin overrides the war plugin and prevents the war task being called. I got around it by calling it directly. Is this remotely sensible or should I give up and move to a multi-project setup in eclipse and gradle? ear { doFirst { println " - force build war..." tasks.war.execute() } from("$destinationDir") { exclude('nz') rename ('TrialApp(.*)(.war)', 'TrialApp.war') include 'TrialApp*.war' into('') } deploymentDescriptor { applicationName = "trialapp" initializeInOrder

JavaScript minification workflow with Maven

[亡魂溺海] 提交于 2019-12-07 11:40:55
问题 I am wondering about any "best practices" to integrate a "modern JavaScript build workflow" into a Maven build that produces a WAR artifact. I have found several maven plugins that handle concatenation and minification: WRO4J: https://code.google.com/p/wro4j/wiki/MavenPlugin Minify Maven Plugin: https://github.com/samaxes/minify-maven-plugin YUI: http://alchim.sourceforge.net/yuicompressor-maven-plugin/ However I am still missing how they fit into a full build workflow, since I think it is

simple way to create patch on deployed grails application

冷暖自知 提交于 2019-12-07 11:17:53
问题 i have a deployed grails apps on tomcat6 in my client server machine, but the application is still need many fix, so every bug founded or missing feature on client machine, i creating a patch and delivering to client via ftp on .tar.gz file that will replace on deployed folder. i can't send a fully .war files because the apps is big (~80M), so sending a changes .class files is the only option i have. but the process to creating a patch is too time consuming , especially on rebuild the project

WAR files and Subversion

≡放荡痞女 提交于 2019-12-07 10:52:53
问题 How should I handle WAR files (using GWT) along with Subversion in Eclipse? The problem atm. is when adding the war folder to SVN, it includes all the compiled code, which I don't have a option to filter out, making svn checkouts long and pointless. I don't want my compiled class files on my subversion server, and I don't want svn information in the war package either. But I still need the client-content (html, javascript, css) to be included with the subversion. So what's the Java EE way of

how to ask maven war plugin to copy particular jar file into warfile/web-inf/lib

吃可爱长大的小学妹 提交于 2019-12-07 09:59:15
问题 I have a simple.jar file that stay in c:/JAR. When i used maven war plugin to create a war file, it will copy all the dependencies into lib folder. How can i ask maven to copy simple.jar into lib folder as well. 回答1: I believe this will work for you. I'm not 100% sure the C:\\JAR is correct though. You might have to fiddle with this syntax. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0.2</version> <configuration>

Set Tomcat Default Context Path

六月ゝ 毕业季﹏ 提交于 2019-12-07 07:13:12
问题 In my context.xml file I set the following to: <Context antiJARLocking="true" path="/" /> When I run my project from NetBeans then it works correctly and goes to http://localhost:8080/login . Then when I clean & build and go into Tomcat Manager and deploy the war file, for some reason it goes to http://localhost:8080/appName/login . I'm not sure why it's adding the context path or where it even gets it from but when ever I deploy it manually it does that. When ever I run the project directly

“Unexpected error running Liquibase: Unknown Reason” liquibase 3.3.5 and grails war file

三世轮回 提交于 2019-12-07 05:35:27
This is the command I am running: java -jar /root/liquibase/liquibase.jar \ --driver=com.mysql.jdbc.Driver \ --logLevel=debug \ --changeLogFile=migrations/changelog.xml \ --classpath=/usr/share/tomcat7/lib/mysql.jar:/var/lib/tomcat7/webapps/myApp.war \ --url="jdbc:mysql://127.0.0.1:3306/mydb" \ --username=myuser \ --password=mypass \ --contexts=MYCONTEXT \ update this fails with the following unhelpful error message: Unexpected error running Liquibase: Unknown Reason SEVERE 9/9/15 2:23 PM: liquibase: Unknown Reason java.lang.AbstractMethodError at liquibase.database.DatabaseFactory.register