war

Import WAR to Another Project In Netbeans

微笑、不失礼 提交于 2019-12-23 02:45:21
问题 I have create a web service application in netbeans and another web service client in netbeans which the web service client required to access some file from web service project. I have tried to add project from web service to web service client but fail to add WAR. How to achieve that? Thanks 回答1: Import WAR into another project by creating EAR project and composes all the necessary JAR. 来源: https://stackoverflow.com/questions/7281913/import-war-to-another-project-in-netbeans

Is Developing Maven war apps in MyEclipse worth it?

微笑、不失礼 提交于 2019-12-22 18:45:24
问题 My organization has made an upper level decision to move to maven as the standard build tool for Java projects. I have been tasked with helping our local teams migrate projects over to maven. One of the core tools that is in play is the MyEclipse IDE. MyEclipse seems to have had a "fun" history with the maven team as evidenced in various places, especially when dealing with war projects. I haven't encountered problems with simple jar projects...yet. After fighting with MyEclipse and failing

How to deploy AAR in Tomcat

南笙酒味 提交于 2019-12-22 18:03:54
问题 I have file in AAR format generated using Ant but I would like to deploy it in Tomcat server. Tomcat support only WAR files. I tried to generate war file using command jar cvf smth.war but it doesnt work without manifest. Anybody know how to convert AAR to WAR? 回答1: You need to put .aar files into the WEB-INF/services folder of an Axis2.war file, then you can deploy the Axis2.war file to tomcat. The layout of an axis2.war file is given here. 来源: https://stackoverflow.com/questions/5531370/how

Is it possible to read a properties file from all .war files deployed in a JBoss container

岁酱吖の 提交于 2019-12-22 17:51:25
问题 I've managed to deploy a .war to the Jboss web container containing and read the pom.properties located under /META-INF/groupid-dir/artifactid-dir/ To access the file I've used the following code inside a JSP in the same war: ServletContext servletContext = getServletConfig().getServletContext(); InputStream in = servletContext.getResourceAsStream("META-INF/maven/groupid-dir/artifactid-dir/pom.properties"); This works just fine. But I want to be able to dynamically read pom.propertes from ALL

I need Eclipse to deploy the WAR file my ANT script builds, not what it builds internally

蹲街弑〆低调 提交于 2019-12-22 11:13:03
问题 I'm using Eclipse Helios. I have a dynamic web project going and I've set up Eclipse to use an Ant Builder to generate a WAR file. This all works fine; if I change a .java file, Eclipse automatically runs my build.xml via Ant and updates my WAR. If I deploy the WAR to an external instance of Tomcat, it works perfectly. However, when I tell Eclipse to run my project under Tomcat, it is not using the WAR file generated by the Ant build, or using my Ant script to generate a temporary WAR. I know

Maven in multimodule web project: how to put sibling modules output to WEB-INF/classes and not into WEB-INF/lib as JARs?

余生颓废 提交于 2019-12-22 08:18:19
问题 I have a multi-module Maven project. By default when I build a web module, all sibling modules of type JAR it depends on are copied to WEB-INF/lib folder. I want output of sibling modules to be placed in WEB-INF/classes folder without packaging to JAR. More general question may be: how to keep sibling modules' configuration files out of JARs so that they can be edited after deployment easily? 回答1: You could use an overlay, although that requires that the sibling be of type war rather than jar

Header parse error after upgrade to Jetty 9.3

自作多情 提交于 2019-12-22 06:37:18
问题 I'm having an issue when I change my jetty distro from 9.2 to 9.3. Under 9.2 my app works flawlessly however when running the same war file and connecting from the same client I get the following error messages when running under 9.3: 015-08-30 14:55:32.174:WARN:oejh.HttpParser:qtp1100439041-12: Illegal character 0x20 in state=HEADER_IN_NAME for buffer HeapByteBuffer@26dab36[p=62,l=654,c=8192,r=592]={POST /api/v1/time...0.1:8080\r\nKey <<<Info Header: ...erica/Toronto"}>>>\x00\x00\x00\x00\x00

difference between WAB and WAR

廉价感情. 提交于 2019-12-22 05:05:39
问题 I am a newbie to this and read about WABs , but wish to clear the basic difference - I mean using osgi embedded in tomcat and making a WAR vs making a WAB ? When should one consider each option ? 1) OSGI embedded in tomcat 2) tomcat in OSGI 3) using a WAB 回答1: OSGi embedded in a container (not only Tomcat!) is likely the only option when you are forced to a traditional JavaEE WAR deployment model, i.e. an IT department operates the container and you can only deloy WAR files to it. This

Glassfish Server Error when deploy .war: Error occurred during deployment: Exception while preparing the app : Invalid resource

早过忘川 提交于 2019-12-22 05:01:13
问题 I am using the following: NetBeans IDE 7.3 (Build 201306052037) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 NetBeans integrated GlassFish Server Open Source Edition 3.1.2.2 (build 5) I created an RESTful Webservice with NetBeans, deployed it under NetBeans and it worked fine. So I copied the generated .war file to another machine which uses: Oracle GlassFish Server 3.1.2.2 java version "1.7.0_21" Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode) When I want to deploy the

Sharing static resources between maven modules

拈花ヽ惹草 提交于 2019-12-22 03:46:31
问题 I have a Maven project with a parent-pom project and 3 maven-module projects in it. 2 of the modules are Java-EE web apps that compile into WAR files. 1 of the modules contains common JAVA code which is shared between the 2 other projects. Sharing the JAVA code was easy. The question I have is how to a share common static resources such as JavaScript, CSS, and image files without duplicating them in each web module? I would also like to do it in such a way that I can continue running the web