war

Is Developing Maven war apps in MyEclipse worth it?

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 vari...

In a Java-webapp (war), how can I use HTTP-auth for static content?

I have a Java-webapp. The webapp is packaged as a war-file. These war-file allow static content, that is directly delivered via HTTP. For servlets in this war I can make a HTTP-authentication (implement it with the servlet itself). But I also want HTTP-auth for the static content. How can I realize this? ...

How to compile .war for Java 5/Tomcat 5.5 in Ubuntu?

I try to compile a webtools project for Java5/Tomcat 5.5 in ubuntu (with manually installed eclipse 3.4). I set the installed jre to java-1.5.0-sun-1.5.0.18 and the compiler compliance level to 1.5. When I export this to a .war file, and try to deploy it in Tomcat (Windows XP, Tomcat 5.5.27, Java 1.5.0_18) , I get the following error: ...

How to package a webapp as a deployable war?

I'm new to Maven but I'm hooked on what it offers. How do I take a webapp and have Maven package the webapp as a deployable WAR? Additionally, can I set up Maven to automatically version the builds? ...

How to make maven place all jars common to wars inside the same EAR to EAR root?

We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This is becoming a problem, because the size of the ear is starting to grow out of proportion. I would like to use Maven to calculate dependencies and to place all jars co...

Deploying modules in a web application

I have a web application - deployed on Tomcat. It has two modules Module A and Module B Both have java code as well as UI component (struts\JSP etc.) Functionally, Module A is independent an doesn't depend upon Module B For ModuleA: We create a war for Module A and deploy it as ModuleA.war Now Module B depends upon Module A We so "me...

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

Hi. 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....

How do I deploy/import war package into Netbeans

Hi there, I have looked through the help documentation in netbeans 6.5.1 but cannot find anything explicit explaining how to deploy/import a war package. I know in Eclipse, it's as easy as right clicking in the Project Explorer >> select IMPORT >> WAR FILE. However, I still am unable to find a solution for Netbeans. Thankyou, Jordan ...

ColdFusion 8 as WAR on JBoss 4.2.3 WEB-INF/flex-config.xml error

I have done this by the book multiple times and have also tried using someone else's WAR to deploy, but I keep getting the same error. I am running JBoss 4.2.3 and have tried this on multiple installations (of 4.2.3) I have verified that the supposed missing file file exists. 1.) 19:19:15,853 INFO [ContextLoader] Root WebApplicationCon...

How can I store JEE configuration parameters outside of an EAR or WAR?

I want to store configuration for a web project outside of the web project (ear/war file). The application shouldn't know in which container it's running (WebSphere/JBoss etc.). What is the best way to handle this? Is JNDI a clean way? If JNDI can solve my problems, how should I configure it? (Custom Objects?) In my case are there o...

How best to package a website

I'm working on a website running in Tomcat that stores a lot of member data, and I'm not sure how to best package it. I want to be able to deploy a war easily without needing to remove anything from it first. My first thought was to break out the member data into its own directory outside of the war, but my problem is that some of that...

How to create war files

What are the best practices of creating war files (using eclipse) to run on tomcat? tutorials, links, examples are highly appreciated. ...

JavaMail not sending Subject or From under jetty:run-war

Has anyone seen JavaMail not sending proper MimeMessages to an SMTP server, depending on how the JVM in started? At the end of the day, I can't send JavaMail SMTP messages with Subject: or From: fields, and it appears other headers are missing, only when running the app as a war. The web project is built with Maven and I'm testing send...

Tomcat deployment problem using jar file instead of classes

We're deploying a WAR file into Tomcat 5.5 and it works fine if WEB-INF\classes contains .classes files, but if we move the .jar file containing that .classes into WEB-INF\lib, we get an exception on runtime complaining that java.lang.NoSuchMethodError, but existing class file in .jar file contains the class and method does exits! Any ...

how to link a 'webclient.war" file with another Java web application?

I created a "java web application" in Netbeans, added "web service clients" using three WSDL files. Netbeans created a webclient.war file. So far so good. I created another "java web application" in netbeans and now I want to refer to all objects and generated methods that are now available in the "webclient.war" file. How do I do that...

How do I package multiple WAR files in one Maven project?

I am writing an application that integrates Geoserver with a custom component, intended to be hosted on a single servlet engine. Both are Maven based projects, and I would like to stay in Maven land to package it all into a nice distributable. The general idea I have is to add another module to my application that packages the applicatio...

Can we update a jar / war file in a deployed server and then reload the new jar / war file ?

Can we update a jar / war file in a deployed server and then reload the new jar / war file ? if so how simple we can achieve this, and please if possible list web servers which support this feature. ...

change a config.properties file in a jar / war file in runtime and hotdeploy the changes ?

change a config.properties file in a jar / war file in runtime and hotdeploy the changes ? my requirement is something as follows, we have a "config.properties" in a jar/war file , i have to open the file through a webpage and after the user has made necessary changes to it, i have to update the "config.properties" in jar/war file and h...

Adding WARs to Java's classpath

I have two wars, foo.war and bar.war. foo uses classes from bar. I'm trying to start foo, and add to Java's classpath bar.war, but java throws a ClassNotFoundException. If I rename bar.war to bar.jar and edit its directory structure to look like a jar, it works. Java's documentation on the -CP switch does not mention war files: -clas...

how many war can we deploy onto tomcat?

how many war can we deploy onto tomcat? is there any limitations??? ...