Deploying a Java Project on Tom Cat
I have a java project (not a web application, no web.xml etc) I need to deploy it as a WAR on a tomcat with init servlet. Can anyone help me with the steps to do the same? ...
I have a java project (not a web application, no web.xml etc) I need to deploy it as a WAR on a tomcat with init servlet. Can anyone help me with the steps to do the same? ...
I deploy a war made with "grails war" to a jetty server. As far as I can determine, Grails builds with Sun JDK 1.6.0_17-b04 and jetty runs on Sun JDK 1.6.0.16 (both on linux). 2010-08-18 07:33:47.018:WARN::Nested in org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus...
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...
when i use maven war plugin, by default, this plug-in will copy all class files(*.class) from target/classes to {warfile}/web-inf/classes. The problem is if i have compiled classes (*.class) that stay in another folder : basedir/other-classes (they are *.class file not *.java file, i know, it is weird. But those classes is generated fro...
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. ...
I need to create an web app and was following this tutorial at IBM: http://www.ibm.com/developerworks/data/library/techarticle/dm-0509cline/ However, whenever I try to import the LowFareAir.war file in Eclipse I keep getting the message "Name's cannot be empty" and it doesn't let me continue. I'm a complete beginner to this, am I doing...
Is it possible to use only the command line to Run jetty with only a specified war file and context path. Something like: java -jar $jettyHome/start.jar -Dwar.location=myApp.war -DcontextPath=/myApp OPTIONS=default,plus,jsp ...
I am using the Java Native Interface to include some statically compiled code in with my Java application. Particularly, I've got a DLL file with the compiled code in the WAR that contains my application. Unfortunately, the class loader can't load the DLL from inside the WAR (from preliminary research... if this is wrong, be sure to tel...
Hi, I am deploying a .WAR file on Tomcat v5.5. I want to run a thread on the startup of the war file. So I am thinking of using Startup Servlet for this. But I don't have much knowledge about servlets/startup servlets. Can you guys guide me a bit on how to do it? Any descriptive links on this issues will also be much appreciated. :) ...
I want to distribute the war of my web application generated with Maven with the source code inside it. How to do that with Maven? ...
I've looked at a bunch of sample project and I can't seem to tease out a common best practice. I've seen Spring bean files sometimes go in the web-app/WEB-INF directory. I've seen this in conjunction with with a servlet definition in web.xml like this: <servlet> <servlet-name>my-stuff</servlet-name> <servlet-class>org.springf...
Hi. Maven puts both axis-1.3.jar and axis-1.4.jar to WEB-INF/lib of my war. Can someone explain how to tell it to use only axis-1.4.jar? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&...
Hi, The title is a little bit general so let me give you some background: Our application consists of: A client-side swing executable (core.jar) which downloads modules (jar files) via http The modules which provide the GUI and initiate server interaction (war files) And the server infrastructure (war files) which host modules (jars ...
In my pom.xml, i used maven-war plugin to package different war files and properties-maven-plugin to read the properties file. <plugin> <artifactId>maven-war-plugin</artifactId> <executions> <execution> <id>package-war1</id> <phase>package</phase> <goals> <goal>war</goal> </goals> <configuration> ......... ...
Hello All, I ve created a sample REST web service which writes some data in a xml file. Now I have hard coded the path where the xml file is to be written. I want to know how to declare that local path of the file in web.xml file as servlet parameter and how to get the path from there and use it in codebe . Also I need to create the WAR...
I need to read text file from the classpath in Java WAR application. How can I read it as InputStream. File is located in /WEB-INF/classes/ folder, but when I use following code, it just returns null. InputStream input = servletContext.getClass().getClassLoader().getResourceAsStream("my_filename.txt"); ...
Suppose a WAR layout like so: foo.war -->/WEB-INF -->/classes (..) -->/js -->bar.js -->index.jsp -->web.xml Now suppose the WAR's virtual directory is /blah on server example.com (i.e. http://example.com/blah). What is the HTTP URL of bar.js, one that would be used in a <script src=""> tag that index.jsp might serv...
Hi I have just begun reading up on EJB's. Even as I venture into it I have a few questions based on what I have heard about them. Do applications using ejb's always have to be deployed as EAR ? Can applications containing EJB's be deployed just like other other java web projects using ECLIPSE and without using ANT ...
Hi I'm seeking how to exclude plugins for specific environments. According to GRAILS documentation, starting with 1.3.5 it's now possible to disable a bunch of plugins. For example, I add the jetty plugin for local testing, but don't need it for deployment. I try to use the following in Config.groovy: envname { . . . pl...
I have a web application I would like to deploy on a shared host. I have absolutely no possibility to manually start the server and deploy my webapp like I would do when I deploy it to localhost. I tried unpacking the WAR file and uploading it to the server, it won't work, it won't even show me my jsps like it's supposed to. Any help wou...