Building WAR files

Is there a way not to include my local file(s), but only the ones that are already in CVS when building a WAR file. I'll try and explain this. I started adding a new feature to our current web app. I had to create a few new classes and JSPs on my local computer but I will not add them to CVS until I am completely done with the feature. So now when I have to fix a current bug and create a new WAR file, I don't want these local files to be included. Is there a way to do this? Maybe using Ant or something in those lines? Any suggestions?

You could write an ant target called "buildFromCM" or something that will pull the source out of version control to another subdirectory and war from there rather than your normal source tree.
Lee

Similar Messages

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Build WAR file in NWDS 7.1

    Hi,
    How can we create a WAR file in NWDS 7.1? Please provide any inputs.
    With Regards,
    Ramesh G.

    Hi Ramesh,
    We canu2019t create in WAR file in Webdynpro JAVA Perspective in NWDS 7.1
    Only we can create the WAR file by using java application in JAVA Perspective in NWDS 7.1
    Please Refer to this Link. This is having how to create WAR File in JAVA Prespective:http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503193d9-f586-2b10-4eb6-e8b46dc096db?quicklink=index&overridelayout=true
    How to create WAR file
    [Manual Development|http://help.sap.com/saphelp_nw04/helpdata/en/43/2eafd8d2f30d24e10000000a1553f7/plain.htm]    
    I hope this is helpfull for you,
    Regards
    Vijay

  • Plz...  How to Create .war file in tomcat 5.0

    plz...
    i want clear steps to create .war file
    for jsp or servlet in tomcat 5.0.
    yours
    vijay

    Here is the sample script, U can use this script to build war file:
    Change the following before running the script:
    WebAppDir path to the Tomcat webapps directory
    AppsName value to ur Project Name ie Ajax to diff name.
    basedir - Give webapps dir of ur src files.
    <project default="build" basedir=".">
    <target name="build">
    <tstamp/>
         <property name="WebAppsDir" value="c:\Tomcat\webapps"/>
    <property name="AppsName" value="Ajax"/>
         <delete dir="${WebAppsDir}\${AppsName}"/>
    <delete file="${WebAppsDir}\${AppsName}.war"/>
    <jar jarfile="${WebAppsDir}/${AppsName}.war"
              basedir="D:\eclipse\AjaxEx\webapps"
    includes="**" />
    </target>
    </project>
    Once you run this file. It will create war file in the webapps dir of ur tomcat.
    Bye,
    Vinay

  • 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

  • Fail to Deploy the applicaiton WAR file build by Spring2.5 framework

    The War File build by Spring2.5 Framework can deploy and run successfully on Local WebLogic (10.3.6)
    but this WAR file can not deploy on Java Cloud Service ;
    I tried to deploy it on the Java Cloud Services Control pages and with OEPE (the Eclipse IDE whichi download from Oracle Cloud Official ) ,but these two were all failed !
    the error logs as below ,and their no noticeable info in logs , ple help to fix it
    Thanks
    LOGS
    Deployment to Oracle Cloud failed, please check Error Log for detail.
    [deploy]
    2013-02-21 01:18:56 CST: Starting action "Deploy Application"
    2013-02-21 01:18:56 CST: Deploy Application started
    2013-02-21 01:19:02 CST: weblogic.application.ModuleException:
    2013-02-21 01:19:02 CST: WLS action state: failed
    2013-02-21 01:19:02 CST: Action FAILED with WLS state: failed
    2013-02-21 01:19:02 CST: Application deployment failed.
    2013-02-21 01:19:03 CST: [Deployer:149194]Operation 'remove' on application 'helloSpring' has succeeded on 'm0'
    2013-02-21 01:19:03 CST: WLS action state: completed
    2013-02-21 01:19:03 CST: "Deploy Application" complete: status FAILED
    [virus-scan]
    2013-02-21 01:18:36 CST: Starting action "Virus Scan"
    2013-02-21 01:18:36 CST: Virus Scan started
    2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
    2013-02-21 01:18:53 CST: File Scanned:     "helloSpring.war".
    2013-02-21 01:18:53 CST: File Size:     "4049531".
    2013-02-21 01:18:53 CST: File Status:     "CLEAN".
    2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
    2013-02-21 01:18:53 CST: Virus scan passed.
    2013-02-21 01:18:53 CST: "Virus Scan" complete: status SUCCESS
    [whitelist]
    2013-02-21 01:18:53 CST: Starting action "API Whitelist"
    2013-02-21 01:18:53 CST: API Whitelist started
    2013-02-21 01:18:56 CST: WARNING - There are 3 warnings(s) found for helloSpring.war.
    2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
    2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
    2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (1 Warning)
    2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "login-config" missing under element /
    javaee:web-app.
    If you want to make your application public, you can have empty
    <login-config/> in your web.xml. If you need authentication then you must
    have <login-config> and its child <auth-method> element in web.xml.
    Without this element(<login-config>), users may be challenged by SSO, but
    the application code will be executed as anonymous user only. Line No:5.
    2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (2 Warnings)
    2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "jsp-descriptor" missing under element /
    orcl-weblogic:weblogic-web-app.
    If you have a JSP file that is not pre-compiled, The compilation errors
    could be shown on the browser. It is recommended to include
    <jsp-descriptor><verbose>false<****><****-descriptor> in weblogic.xml.
    Line No:2.
    2013-02-21 01:18:56 CST: WARNING - 2:Recommended child element "session-descriptor" missing under element /
    orcl-weblogic:weblogic-web-app.
    You will be required to have distinct cookie-path, if multiple
    applications are accessed with in the same SSO session or if you have
    multiple applications with different auth-method(CLIENT-CERT, FORM, BASIC)
    in the same service instance.
    Line No:2.
    2013-02-21 01:18:56 CST: WARNING - helloSpring.war had 3 warning(s).
    2013-02-21 01:18:56 CST: INFO - Whitelist validation has completed with 0 error(s) and 3 warning(s).
    2013-02-21 01:18:56 CST: Whitelist validation passed.
    2013-02-21 01:18:56 CST: "API Whitelist" complete: status SUCCESS

    This kind of deployment error is typically caused by usage of certain API's or an attempt by the SpringFramework to get certain restricted resources .
    Can you please find the Service logs (Via Java service Console " View Service Logs" link ) and se if anything is reported in the timeframe when this deployment error happend.

  • Building a war file with a folder structure

    How do a build a war file with a folder structure? I have code that creates JarEntrys and writes jar files and resource files etc. to the war. When I look at the war that gets created using winzip the path names for all the entries are correct and everything appears correct. When I try to deploy this to Tomcat nothing deploys. It appears my war is in a folder structure. How can a build this folder structure in the war? When I look at a good war using BeyondCompare I see folders and files in the folders just like I would see looking at a directory on my system. When I use BeyondCompare to view one of my "bad" war files that I have created everything is in the root. There are no folders and no folder structure. I am using the java.util.jar API to create the war but I don't see any methods or any API that will let me build up any sort of folder structure. It seems like I am missing something basic here.

    command is same for creating jar/war/ear.
    u simply need to execute jar /? for detail.

  • How to build an EJB as a war file

    Hi All,
    I am new to EJB . I am trying to build the EJB project as a WAR file. I am supposed to use EJB as a war file instead of EAR.Can any one provide a sample script to build EJB project as a war file which loads the xml files using spring.
    Thanks in advance.

    900161 wrote:
    Hi All,
    I am new to EJB . I am trying to build the EJB project as a WAR file. I am supposed to use EJB as a war file instead of EAR.Can any one provide a sample script to build EJB project as a war file which loads the xml files using spring.A sample script. There are so many different types of scripts for so many different tools and so many different platforms. Shall we guess which is the one you need or are you going to provide actual details?
    Of course you're not going to actually get it, nobody here is going to do your work for you.

  • Build a war file from cf 8 standard

    hi all,
    i need to deploy cf 8 standard edition by tomcat. i've built
    a war-file from the developer edition, but because of the
    limitations of the dev edition, i need to upgrade this to a
    standard edition. unfortunately it seems not to be possible to
    enter the license key in the adminstrator (don't ask me why, adobes
    support had not anwered yet) , so i need to build a war file. is it
    possible to make a war from a usual cf standard installation? as
    far as i've seen i need to pack wwwroot into a war.
    thanx!

    I believe you're going to need the Enterprise edition to do
    what you want to do, and still have any glimmer of a shine of hope
    of support.

  • How to compile and build a war file for JAX-RPC

    Hi all,
    I know that all who use JAX-RPC knows it.
    How to compile JAX-RPC code which was not the sample code of JWSDP example?.
    Which jar file is to be included in classpath?.
    After compiling,how to make a WAR file so i can deploy it in TOMCAT ...anyone plz

    Nobody answers.But i found a right article which was quite helpfull to do it.
    http://java.sun.com/developer/technicalArticles/WebServices/getstartjaxrpc/

  • Error while running a report JSP in a war file from 9iAS server

    Hi,
    I've a web application archive file (war) which i m deploying to the web using OEM. The war file consists of many JSPs. Among those JSPs i have one Report JSP, which i m calling from another JSP which is like a parameter form for the report JSP. When i call the report JSP, it gave me the following error,
    javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
    javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
    at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:334)
    at FMCardExp.jspService(_FMCardExp.java:58)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    The report tag in the report JSP is as follows,
    <rw:report id="report" parameters="server=repsvr&userid=scott/tiger@db">
    The report server is up and running and so is the database. This report JSP was generated from the reports builder and the opened in JDeveloper environment,in the war file project. It was then compiled and a war file was created. Surprisingly this report JSP works fine when i run my webapplication from the embedded OC4J instance for JDeveloper, but when i try to run it from the 9iAS server i get the above mentioned error. The deployment of the war file to the server is successful and the other JSPs work fine, only the reports JSP is not working. Do i need to have some settings for running the reports JSP, please advise.
    Thanks in advance
    Unmesh

    Can you please help me in deploying jdeveloper (9.0.3.1)war file to 9iAS release 1, when I try to run, none of the jsp's execute, I get java OutOf Memory error, I also think that there may be some version compatibility between jdev jdk and 9iAS jdk.
    Thanks,
    Kavitha

  • Error auto-deploying a Web App (.WAR file)

    Hello,
    Weblogic 6.1 throws a FileNotFoundException about 10% of the time for me when
    auto-deploying a Web app. Has anyone else run into this? I searched the newsgroups
    but didn't come up with anything, so I thought I'd start here.
    My build/deploy cycle is managed by an Ant build file that creates a WAR file
    of my web application and then drops it into $WL_HOME/config/mydomain/applications.
    Occasionally when I do this, I get the error shown below. Originally I was building
    the WAR file right in the ../applications directory, so I thought that might be
    an issue. So, I started building the WAR file in a staging directory and copying
    it into ../applications. No luck. Next, I tried deleting the original WAR file
    from ../applications, and THEN copying the new one over from the staging directory.
    Still fails occasionally.
    Let's see. This is Weblogic 6.1 on Win2K. The only other thing is that my dev/build/staging
    environment is on a network share, and it's from there that I'm copying the WAR
    file to my local machine (where WL is running).
    If someone has seen and/or knows what is up with this, great. If not, it's not
    a show-stopper.
    Thanks!
    Cheers,
    David
    ========================================================
    <Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException opening application
    mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
    java.io.FileNotFoundException: error in opening zip file
         at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
         at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
         at weblogic.management.mbeans.custom.Application.load(Application.java:387)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy8.load(Unknown Source)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
         at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
         at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)

    Michael,
    This is a problem with 6.1 SP2 also -- a very annoying error. Without auto deploy
    working properly, developers are spending alot of time waiting for WebLogic to restart.
    HELP!!! we need this fixed.
    I see the EXACT same stack trace (ERROR).
    Tom Markel
    Sr. Java Engineer
    Michael Young <[email protected]> wrote:
    Hi.
    This may be a known issue that was addressed in sp2. If you are not already
    at that sp level I suggest you upgrade.
    Regards,
    Michael
    David Ventimiglia wrote:
    Hello,
    Weblogic 6.1 throws a FileNotFoundException about 10% of the time forme when
    auto-deploying a Web app. Has anyone else run into this? I searchedthe newsgroups
    but didn't come up with anything, so I thought I'd start here.
    My build/deploy cycle is managed by an Ant build file that creates a WARfile
    of my web application and then drops it into $WL_HOME/config/mydomain/applications.
    Occasionally when I do this, I get the error shown below. OriginallyI was building
    the WAR file right in the ../applications directory, so I thought thatmight be
    an issue. So, I started building the WAR file in a staging directoryand copying
    it into ../applications. No luck. Next, I tried deleting the originalWAR file
    from ../applications, and THEN copying the new one over from the stagingdirectory.
    Still fails occasionally.
    Let's see. This is Weblogic 6.1 on Win2K. The only other thing is thatmy dev/build/staging
    environment is on a network share, and it's from there that I'm copyingthe WAR
    file to my local machine (where WL is running).
    If someone has seen and/or knows what is up with this, great. If not,it's not
    a show-stopper.
    Thanks!
    Cheers,
    David
    ========================================================
    <Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException openingapplication
    mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
    java.io.FileNotFoundException: error in opening zip file
    at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
    at weblogic.management.mbeans.custom.Application.load(Application.java:387)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy8.load(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Getting an error while deploying war file into weblogic serve

    Hi All,
    We have build a sample war file from JDeveloper11.1.1.6.0 tool (which is java based web service).
    And we are trying to deploy into the WebLogic(10.3.6) Server using Ant scripts(apache-ant-1.8.4) from command prompt.
    While doing this getting an bellow error :
    [wldeploy] Task 0 initiated: [Deployer:149026]deploy application ViewController
    on AdminServer.
    [wldeploy] Task 0 failed: [Deployer:149026]deploy application ViewController on
    AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + ViewController AdminServer
    BUILD FAILED
    D:\JDeveloper_Practice\otn\otnapp\ViewController\deploy\build.xml:50: weblogic.D
    eployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException:
    Task 0 failed: [Deployer:149026]deploy application ViewController on AdminServe
    r.
    Target state: deploy failed on Server AdminServer
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
    Could you please help me on this, if anyone know the solution.
    Thanks & Regards,
    Ramesh.

    Hi Ramesh,
    Try to include faces jars with in your classpath.
    It talk about the " java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet"
    you check for this blog which help to say about this issue using JDev.
    http://andrejusb.blogspot.in/2009/10/how-to-solve-javalangclassnotfoundexcep.html
    Regards,
    Kal

  • How to export war files without including the library files

    Hi,
    I have several portlets that share the same jar files. In my tomcat, I'd like to load those jar files from shared/lib when tomcat starts up. Currently, to accomplish this, I export the war file from jsc, deploy to tomcat, then manually delete the jar files from WEB-INF/lib.
    Is there a way I can modify some property file so that my war file does not include the shared libraries?
    Thanks,
    Marc

    Hi!
    Rightclick project's root node in Projects window and select Properties. Then go to Build->Packaging and remove unnecessary libraries.
    Thanks,
    Roman.

  • Not able to create EAR file for WAR file extracted project

    Hi Experts,
    I am trying to import a WAR file, make changes to the project and create an EAR file for the same. I am not able to remove import
    errors despite of adding required jar files to it.
    Also, I am not able to create an EAR file for the same.
    I have copied the steps here with screen shots. Below are the steps :
    Import WAR file in NWDS 7.3 – Enterprise Portal perspective
    Select WAR file to create WAR and EAR project for it.
      Project created with import errors.     e.g – com.sapportals.portal.prt*
    Found jar file from Class – target jar file table. 
    e.g – for Class com.sapportals.portal.prt.resource.IResource needed jar file is tc~epbc~prt~api.jar
    Copied required jar files in WEB-INF -> lib folder.
    Configure Build path and Add External jars.
    Portalapp file screen shot
    I think errors should go now, but they still exist.
    Next I right click on WAR project and tried updating related EAR project.
      Next, Export EAR file from EAR project.
       I have tried both EAR types.
    But EAR file is not created.
    Please help me in removing the errors.
    Thanks in advance :-)
    Anubha Pandey

    Hi Anubha,
    I feel that you're missing JAR dependencies and hence not able to resolve the above import errors.
    Please go through the below thread for the AFP Masthead customization and follow the same:
    How to download and change AFP Masthead on SAP Portal 7.3
    Hope, this will help!!!
    BR,
    Anurag

Maybe you are looking for

  • How can I get all the values of a String array profile property using javascript?

    I am trying to build functionality into our site that records all products added to the basket against a user's profile. I have so far been able to store the product codes against the profile as a property using Ajax:        var dataString = ":formid

  • Mail command question

    Hi, i often use the mail command to send email from terminal. Is it possible to change the default "From: " header? If i use the mail command from root mails apper to come from System Administrator (root@localhost); i'd like to use a different name.

  • SoftKeyBoard checking for ENTER key

    When I put up the softkeyboard for iOS how can I test when the ENTER key has been pressed using actionscript 3. Currently I listen for the SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE to call a function but would rather do it using the ENTER key (go, s

  • I always imported my SD cards into iPhoto.  Now it doesn't work with the cards from my new Nikon D7100 camera. What to do?

    I have an iMac OS x 10.6.8 and always used iPhoto with good success, importing images including RAW format from my Nikon D40 into iPhoto.  Since I bought a new Nikon D7100 camera I cannot upload the RAW images from its SC cards.  Does anyone have an

  • Enhance infotype 0077 screen number 2008

    Hi, I want to enhance infotype 0077 screen number 2008. Using PM01, i created enhance single screen record with infotype 0077 with version 08. But the additional field appear on screen number 2000 instead of screen number 2008. How to add the additio