How to create a war file of a project
hi,
I have a project, in my project i have used file to read & write data
from file, i have used Ecllipse to build this project. now how i will
create war file in Ecllipse & ho i will run it? IS there anyone who can
help me? Please help me..
With reagards
Nahar
hi,
I m using following version of Ecllipse :lomboz-wtp-emf-gef-jem-eclipse-SDK-3.1.2-win32. With this how i will build war file of project? can u give me solution?
With regards
Nahar
Similar Messages
-
Can you help me , how to create the war file.
I am using the tomcat 5.0 server, i have book folder in webapp.
how i can create the war file? what is command?
help me
ramyausing jar command u can create a war file
jar -cmf myweb.war *.*<files to be included in war file>
regd,
ritu -
How to create a war file of web application
Hi Techies
How to create a war file of the web application?
And plz tell me the utilities used for it.hi,
To compress a 'abc' web application into a "Web Archive" file named abc.war, follow the steps below:
1> Open a command prompt and cd to the application's dir:
<TOMCAT_HOME>\webapps\abc
2> Use the java archive command 'jar' to bundle up your application:
jar -cvf abc.war *
3> Move this to any other server and work with it!! :)
-- Abdel Raoof Olakara
http://olakara.googlepages.com -
How to create the exe file for java project.
How to create the exe file for java project.
am done the project in java swing , i like to create the project in exe format, so any one help for me,
send the procedure for that.
thanking u.How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
and got several useful links.
Better search terms might yield even better results.
Sheesh. -
How to create a .war file
Hi Guyz,.............
how can i make a war file from a project directory
i had searched the forums but that did not help me.
i used this command
C:\My Project\source>jar cvf MyProj.war
'c' flag requires that input files be specified!
Usage: jar {ctxu}[vfm0M] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c create new archive
-t list table of contents for archive
-x extract named (or all) files from archive
-u update existing archive
-v generate verbose output on standard output
-f specify archive file name
-m include manifest information from specified manifest file
-0 store only; use no ZIP compression
-M do not create a manifest file for the entries
-i generate index information for the specified jar files
-C change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .
please help me out guyzYou are nearly there already and the error message is telling you exactly what is missing from your command.
Try
jar cvf MyProj.war file1.class file2.class
or maybe
jar cvf MyProj.war classes/*.class
or even
jar cvf MyProj.war classes/
etc
All the info is in the output you supplied! -
How to create a WAR File for an IDM installation?
I have a IDM 7.1.1 test instance installed on a server which uses a local mySQL.
Is there a way I can create war file of the IDM installation? I would like to migrate the IDM to another server.
I know how to create a IDM war through Netbean; this particulart instance is not hooked to NetBeans.i think it should be jar -cf /path/to/warfile/idm.war *Edited by: Amit_Bansal on Sep 30, 2008 9:49 AM
-
How to create a war file from extracted file-system on server?
Hi!
On a weblogic I have
to offer a test environment
where users can exchange classes in the folders
of the extracted archieve for faster testing.
Now I need a command (should be easily to use) where
you can achieve the following logic
create war-file host:user:passwort/webapp-folder
Is there anything? Up to now I havent find someting!
Nice greetings Starkialternatively you could create the required directory structure and use winzip to zip the file .. save the file with .WAR extention .
-
How to deploy a war file on Weblogic Server 7.0??
Hello Everyone
I am trying to deploy a servlet on Weblogic Server 7.0 as a WAR file. Can anyone of u plz tell me the steps required to do that. I am posting this question on EJb forum and not on servlets coz this is not a servlet problem, rather this is something which is related to J2EE, ie how to deploy a war file on J2EE Server.
This is how i have done it, but this is not working---
(1) First i created a directory structure for the web application according to J2EE Specification.
C:\Work\
myServletWAR\
META-INF\
WEB-INF\
classes\
HelloServlet.class
web.xml
i.e within work directory, there is a dic called myServletWAR which is my application directory which contains 2 sub directories viz META-INF which contains the mainifest file being generated by the jar utility. the second directory in the myServletWAR application dir is WEB-INF, which contains one file called web.xml for servlet mapping and one directory classes which contains HelloServlet.class
(2) I used following command for creating war file from myServletWAR director(i.e from my web application's directory).
jar -cvf TestServletWAR.war .
This creates the TestServletWAR.war file in myServletWAR dir.
Here is how my Servlet and web.xml looks like...
Servlet code
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet extends HttpServlet
public void doPost ( HttpServletRequest req, HttpServletResponse res )
throws IOException, ServletException
doGet( req, res );
public void doGet ( HttpServletRequest req, HttpServletResponse res )
throws IOException, ServletException
res.setContentType( "text/html" ); // Can also use "text/plain" or others.
PrintWriter out = res.getWriter();
// Get the requestor's IP address (See JavaDocs to see how to get other info):
String addr = req.getRemoteAddr();
// Create output (the response):
out.println( "<HTML><HEAD><TITLE>HelloServlet in myServletWAR</TITLE></HEAD>" );
out.println( "<BODY><H1 ALIGN=\"CENTER\">" );
out.println( "Hello " + addr + ", from HelloServlet in myServletWAR!" );
out.println( "</H1></BODY></HTML>" );
out.close();
************************Servlet Ends Here **************************
web.xml
---------------------------------------------------------- <!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>myServletWAR, a first Web Application</display-name>
<description>
This is a simple web application containing a single servlet
of the "Hello, World" variety.
</description>
<servlet>
<servlet-name>myHello</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myHello</servlet-name>
<url-pattern>/myHello</url-pattern>
</servlet-mapping>
</web-app>
****************************web.xml file ends here********************
After deploying the TestServletWAR.war file on the weblogic 7.0, i tried to execute the servlet from the browser by the following URL
http://localhost:7001/myServletWAR/myHello
I am getting the HTTP 404 Error, which is an indication that weblogic was unable to find the resourse, which it was requested for. Can anybody plz tell me what i m doing worng?? do i need to use weblogic related xml file (i.e weblogic.xml) also along with web.xml. If yes, then what all i need to include that. I m not very sure. A sample weblogic.xml file for this HelloWorld example will help me a lot.
Looking forward for your help
Thanx in advance
Nishahi i have read ur answer regarding deploing a servlet in weblogic 7.0
i am facing another problem
when i try to access the servlet inside my classes directory it throwa an error stating this :
IT DOES NOT FOUND THE CLASSES ON WHICH MY SERVLET DEPENDS.WHAT DOEES ATHIS MEAN
KINDLY TELL ME
PUNEET JAIN
<May 28, 2003 1:46:25 PM IST> <Error> <HTTP> <101250> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Se
rvlet class myclasses.Wservlet for servlet welcome could not be loaded because a class on which it depends was not found
in the classpath D:\bea\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\W
ebApp\WEB-INF\classes.
java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)>
<May 28, 2003 1:46:26 PM IST> <Error> <HTTP> <101018> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)] Ser
vlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Servlet class myclasses.W
servlet for servlet welcome could not be loaded because a class on which it depends was not found in the classpath D:\be
a\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\WebApp\WEB-INF\classes.
java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:791)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:517)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> -
How to deploy a war file from a different app server to the SAP one
Hello,
I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?Hi Roy,
in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
You can do this using Netweaver Developer studio.
Perform the following steps:
- Start NWDS
- Create a New Enterprise Application Project
- Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
- Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
- Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
=> You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
- Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
- Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
You are done
The EAR file is generated and will be created in your workspace.
Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
You can now deploy the ear file to SAP J2EE
Hope this helps (Reward points for helpful answers are appreciated!)
Cheers -
How to create a password file for executing psadmin command to deploy portl
how to create a password file for executing psadmin command to deploy portlet
What you have done is perfectly right. The password file doesn't have anything else apart from the password
for example in your case
$echo password > /tmp/password.txt
However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
The solution was,
manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
HTH -
How to deploy a WAR file in JRun server?
hi,
I created one war file, now i want to deploy that file in JRun server. can anyone give me an idea of how to deploy that war file in server...By following the deployment documentation for your server. This isn't a general purpose "help me do everything" forum
-
How to open a .War file
Hi all
I have an application running on J2EE server as packed .War file .
Does anybody know how to open the War file in NWDS ??
And how to modify some JSP present in that application ???
Thanks
KKHi KK
You will ot be able to open a WAR application deployed in NWDS . Alternatively you can open it using windows ity tools like winzip outside NWDS .
What you can do is you can create a Web module project and incude all the src including JSP's and change the reqd jsp and redeploy the application again with the changes
hope this helps,please do not forget to reward suitable points .
regds
rajeshkr
Message was edited by: Rajesh K. R. -
Hi dear
i have a JSp file Now problem is that my server dosent support JSP file
So i ahve to make a WAR file
So can u tell me how to make a WAR file.
i am using TOMCAT 5.5.9 & Orion serveruse an ide and deploy the webapp
like
- netbeans
- Jbuilder
- eclipse
- sun one studio
or google like :
http://www.google.com.au/search?hl=en&q=creating+war+%2B+jsp&btnG=Search&meta=
and get as first hit
http://access1.sun.com/techarticles/simple.WAR.html
regs
g00fy -
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
How to create one ISO file large than 2G
hi,
here when I create one ISO with 3G(larger than 2G) on solaris 10 machine, I met below error:
mkisofs: File too large. cannot fwrite 32768*1
Anyone has suggestion for this problem? How to create one ISO files larger than 2G?
See the detail logs information:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
mkisofs -o my.iso -A "Software DVD" -D -L -P "Study "-p CBC/XLE -r -T -V R50 -v iso
mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
mkisofs: The option '-P' is reserved by POSIX.1-2001.
mkisofs: The option '-P' means 'do not follow symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-P'.
mkisofs: Use -publisher in future to get old mkisofs behavior.
Warning: creating filesystem that does not conform to ISO-9660.
mkisofs 2.01 (sparc-sun-solaris2.10)
Scanning iso
Scanning iso/rac_stage3
Using RAC_S000 for /rac_stage2 (rac_stage1)
Using RAC_S001 for /rac_stage1 (rac_stage3)
Using INSTA000.1;1 for ..
Writing: The File(s) Start Block 48
0.42% done, estimate finish Thu Feb 1 16:12:35 2007
0.84% done, estimate finish Thu Feb 1 16:12:36 2007
1.26% done, estimate finish Thu Feb 1 16:12:36 2007
1.69% done, estimate finish Thu Feb 1 16:12:36 2007
2.11% done, estimate finish Thu Feb 1 16:12:36 2007
�
87.65% done, estimate finish Thu Feb 1 16:14:54 2007
88.07% done, estimate finish Thu Feb 1 16:14:54 2007
mkisofs: File too large. cannot fwrite 32768*1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks!does it matter "copy protection" ? for the problem that i have?
my computer is alwyes get stuck while i trying to made a dvd or image
i made few disks wite menu in the past & i had not problems at all
Maybe you are looking for
-
Error while posting billing document to Accounting
Hi, We are getting an error when posting Billing document to Accounting .Eror "The document type is relevant for VAT.Please inset a VAT code in postings. Thanks in advance.
-
My ipod 32gb 1st generation battery went totally dead because the usb cable was defective. I have since replaced the cable but now itune will not launch automatically as it did before and windows xp does not recognize it. Nonetheless it is charging
-
Need to Output WMV from Final Cut Pro
I have FCP 3. It has everything I need except my output options don't include WMV files. Is there a download or product that I can get for this version that will give me more output options? If not, is there any other codecs that I can use that will
-
Macbook Pro Wifi Keeps Disconnecting
Ever since I got my new BELL Router, I've been having these constant WIFI disconnects. It would stay on for about 30 minutes and disconnect by itself.. anyone have any solutions to this problem?
-
Homepage,BBC,is not changing from 25th June, when I refresh.
Until the last few days, every day when I brought up firefox my homepage which is www.BBC.co.uk, showed the correct day. I am not a computer genius, just a grandmother and am not sure what to do. refreshing does not work.