War file doesn't take new classes

Not sure if this is right place to ask this question, but please help.
I had a war file deployed to weblogic 8 server, and I want to fix a problem quickly so I exploded the war file and put new classes files in /WEB-INF/classess directory. After I re-deploy this new war file, it still take the old version of classes file from somewhere I don't know.
Please help, I think this is short-cut to fix application but it turns to take even longer.

Not sure if you are stalled by a firewall or security in your web application or other mishap. Can you take a look at the relevant log at the server site? Look at the .log files at j2ee/home/log/. From *-web-access.log, you can determine if your url request indeed hit your server. From application-deployments/<youApp>/application.log, you would see the relevant exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • War file doesn't take new classess

    Not sure if this is right place to ask this question, but please help.
    I had a war file deployed to weblogic 8 server, and I want to fix a problem quickly so I exploded the war file and put new classes files in /WEB-INF/classess directory. After I re-deploy this new war file, it still take the old version of classes file from somewhere I don't know.
    Please help, I think this is short-cut to fix application but it turns to take even longer.

    Not sure if you are stalled by a firewall or security in your web application or other mishap. Can you take a look at the relevant log at the server site? Look at the .log files at j2ee/home/log/. From *-web-access.log, you can determine if your url request indeed hit your server. From application-deployments/<youApp>/application.log, you would see the relevant exception.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deploy 30mb war file to 10servers - Takes around 30min

    I delpoy an application to 10 servers which are setup without a cluster. Since the size of each war file is around 30MB it takes around 2.5min per server. Effectively the entire deployment takes around 25-30 minutes.
    What I find is that if a file (war,ear) is delpoyed to a cluster, the delpoyment starts on all the 10 servers at the same time. Deployment time here is only around 3-4minutes.
    However, if its delpoyed to a groups of servers, the deployment occurs one after the other.
    Among other things I have tried the Ant parallel task ; but none have helped. Has anyone come across this issue and have any idea on how to resolve it ?
    PS : Opening a call with BEA did not help either :(
    Kevin.

    hiya,
    actually, there are two ways to deploy the application be it war,ear,or jar.
    either using dcmctl or editing the application.xml, server.xml, data-sources.xml, default-web-site.xml files and then restart the oc4j server.
    other way is to deploy through the emwebsite.
    after you edit the .xml files, you need to update the config in 9ias using dcmctl updateconfig -v -d.
    hope this helps

  • Class.forName() doesn't take dynamic class name

    String name="";
    String country="";
    String className = name + "_" + language + "_" + country;
    Class thisClass = Dynamicclassload.classLoad(className);
    System.out.println(className);
    Class class1 = Class.forName(className);
    child = (ResourceBundle) class1.newInstance();
    child.setParent( bundle );
    bundle = child;
    System.out.println("I am here");
    As i am passing classname as variable it throws an exception class not found exception.but if we write class name as the parameter of class.forName().it works.i am implementing in j2me
    why this happen? give me solution.

    The following classpackage test;
    public class TestLoad {
        String aString = "This is a Test";
        Integer anInteger = new Integer(42);
        public TestLoad() {
            System.out.println("aString = " + aString + ", anInteger = " + anInteger);
    }works correctly when loaded and instantiated by this class:package test;
    import java.util.logging.Logger;
    public class ExecuteTest {
        public static final Logger log = Logger.getAnonymousLogger();
        public static void main(String[] args) {
            try {
                Class clazz = Class.forName("test.TestLoad");
                TestLoad test = (TestLoad) clazz.newInstance();
            } catch (Exception ex) {
                log.severe(ex.toString());
    }and produces the string "aString = This is a Test, anInteger = 42"
    I used the following version of Java on Windows 2000
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

  • Importing Item Price using oInventoryGenEntry doesn't take new price

    Hi Experts,
    I have created a DTW Import file and it is able to import Item's Price & Quantity via Inventory>Goods Receipt. But when I import the second time with different price (to create FIFO layer) than the previous, the system is still taking the previous price.
    Please advice.
    Thank you.

    Hi Gordon,
    Thanks for the reply. But I have solved this issue by choosing the pricelist other than the Last purchase Price list which is selected  by default.
    In GroupNum field in header file, I mapped the price list which solved my issue.

  • How to include text file in classes directory of war file.

    I have a project that uses a text file called cache.ccf (JCS configuration file) when debugging the webservices, I have to dig into the inflated war file directory and manually place the cache.ccf file in the WEB-INF/classes/ directory/
    How can i have JDeveloper wrap the file up in the war file in the WEB-INF/classes directory. both for debugging and when the war file is actually built for deployment.
    Thanks,
    Bart

    Nevermind, I figured it out using the Project Properties->Deployment and include it in the WEB-INF/classes

  • Pack java classes in to a war file

    i cant pack the java classes when i build my web project i works fine in localhost but when i tried to proved in my server the war file doesnt pack the java classes. How do i pack the classes???
    i tried in the properties to add the files in packing to add the files but i didnt work.
    how do i pack the java classes???

    Are we talking about deploying a war file here or creating one???
    If we are talking about deploying, it may very well be that auto deployment is turned off. In that case the server will have some kind of admin interface through which you can deploy your war file manually, this is server specific so I can't help you any further with it.

  • War with WAR files :-)

    HI All:
    I believe there are lot of issues with the current WAR file packaging which hinders its usage in many many practical scenarios.
    (1) Once I package an app in a WAR file, all the jars and classes inside that are merely becoming useless to external world. Suppose I want to develop an application using the classes inside the WAR file, is there any way to do this without unpacking t he WAR / duplicating the jars. FOr example, suppose I have deployed APP_A as app_a.war, now I am developing a new shell script. Can I write,
    set CLASSPATH = app_a.war??
    As far as I know it is a NO. Then am I supposed to duplicate the jar files / classes outside. That is too bad.
    (2) How is an end user supposed to modify a WAR file's web.xml. Many app servers, dont have a way to "introspect" the WAR file and open the web.xml in a GUI for modification. Suppose , I have my init parameters in web.xml, that should be modified by deployer, currently he has to manually explode it?
    (3) How do I dynamically add classes to WAR file? Suppose based on the installation parameters, I generate a class file dynamically for my application (which is deployed as WAR), how do I update the WAR with new class files?
    I am horribly lost due to these limitations. Please help.
    -Sanjay

    OK... Not much to read anyway :-))). it is merely NOT possible with the current spec of WAR files. Only way is to use just the WAR directory structure instead of packaging it. I think JAR inside WAR should ideally be accessible via:
    my.war!my.jar, I would say....
    -Sanjay

  • Absolute file path in a war file

    Hi,
    I have a war file which I have deployed on a Weblogic 7 server.I have a startup servlet which tries to read an xml file located in the WEB-INF folder.I need to have the absolute path to the file so that my parser can read the xml file.
    ServletContext.getRealPath() returns null when the application is in a war format.
    Would be grateful for any help.
    regards
    Vikram

    I've been using the getRealPath() method from the
    ServletContext object to ..
    I'm suspicious of the fact that
    you are getting a null pointer when you use
    getRealPath().
    I have also been deploying my webapps to Tomcat using
    war files. So without knowing more I'm guessing you
    may have some sort of problem with your overall
    configuration here...Nothing to do with configuration. getRealPath() returns null if the .war file doesn't get unpacked. The Tomcat servlet engine unpacks the war files but weblogic apparently does not.
    So getRealPath() is not generic enough, as it depends on the servlet container used.
    Also, I would not recommend the suggestion to use the ProtectionDomain.getCodeSource() method (although it may work). ProtectionDomain is not intended for reading xml files, (wether inside the web-inf dir or not) but has to do with security. It is simply overkill in this case.
    The poster should be able to get the file with the class.getResource() method, get a java.net.URL obj out of it, then call URL.getPath() or getFile() (check the URL class for these methods ), get back a path string and call his parser.
    The other way would be to simply list that file in the web.xml as an init param :
    <context-param>
    <param-name>filename</param-name>
    <param-value>WEB-INF/file.xml</param-value>
    </context-param>and get it with
    getInitParameter("filename")

  • [b]problem with deploy .war file

    Hi
    I am trying to deploy a war file. I have Oracle 9iAS (release 2) in Sun Solaris server.
    I am using the enterprise manager gui to try to deploy a .war file as follows.
    My .war file has the structure: folder META-INF, folder WEB-INF, and other folders. THe folder
    WEB-INF has the file web.xml and the folder classes.
    I connect to enterprise manager at port 1810 and go to the OC4J home page and under
    deployed applications, I choose under applications "Deploy WAR file". It takes me to the next page
    where I enter the war file (pippo.war)
    Application Name: pippo
    Map to URL: /pippo
    THe only choice I have then is to click the Deploy button. I then get the response
    "Failed to deploy web application "pippo". Jar file: /var/tmp/jar29056.tmp is missing its standard xml descriptor located at WEB-INF/web.xml"
    In that path there is not that file, there are 2 folders, one with the file .war and one with the file .ear
    I have no idea what this error message means.
    The documentation for deploying servlets in 9ias using enterprise manager makes no mention of this.
    Thanks,
    Marcella

    Marcella,
    Are you using Oracle9iAS 9.0.3 ?
    Does this happen with any war file ?
    Are you able to deploy a ear file without problems ?
    Can you please test if you can deploy your war in a
    OC4J standalone environment ? steps from the general faq available at http://otn.oracle.com/tech/java/oc4j
    How can I deploy a WAR file to OC4J standalone ?
    The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.
    You can manually deploy a WAR file to OC4J However following are the steps involved in deploying a WAR file in OC4J.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.
    thanks,
    -Prasad

  • Create and Deploy a WAR file

    Hello,
    We are using OBIEE 10.1.3.4.1 and Oracle Application Server 10.1.3.1.
    We need to recompile the analytics war file and make a new deployment of it after a patch.
    But I am not sure about how to do this.
    Can someone please guide me to do this in a Linux environment.
    Thanks You.

    Google is your friend. With an installed Java JDK bin directory on your path variable you can use these commands:
    Extract a WAR file:
    jar -xf [War File].war
    Create a WAR file:
    jar -cf ..\[War File].war *
    You can pack the WAR files in Windows and then transfer them to Linux or pack them directly in Windows, it doesn't make a difference.

  • Can't undeploy war file

    I have an application, and deploy the war file, I make a new war and when I go to deploy the next error appaers:
    Error while de-serializing the information concerning the J2EE application from the PersistentObject named: inv with description: J2EE application: inv Root Cause:
    oracle.ias.sysmgmt,common,Init.Parameters; is no Serializable.
    In the web server the only change was modify the IP number.
    What can I do?
    Thanks,
    MIGUEL ANGEL CARO
    [email protected]

    Here are some links that might be helpful.
              http://www.weblogic.com/docs60/servlet/admin.html
              http://www.weblogic.com/docs60/programming/webappdeployment.html
              The first link has an overview of web app structure and some useful links to
              more information on web apps. The second link describes the web.xml and
              weblogic.xml files.
              Error messages related to web app creation and url resolution will be printed
              in the weblogic.log file which is in the directory where you start the WebLogic
              server.
              mark
              Matt Heaton wrote:
              > I'm trying to deploy a war file with a single servlet but I can't seem to get it to deploy. Weblogic 6 doesn't give me any errors back but the application doesn't appear to have any contents in it. I'm sure it has something to do with the structure of my war file or the deployment descriptors, can you point me to some good documentation of them. Also is there anyway to view error messages?
              

  • Deploying a Web Service w/o WAR files

    I've seen several posts on this (including a few from me about a year ago), but I haven't seen anything from Sun on how to do this.
    In JWSDP 1.1 xrpcc would create a *Config.properties file, and I would add the following to my web.xml file
                         <servlet>
              <servlet-name>API</servlet-name>
              <servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>
              <init-param>
                 <param-name>configuration.file</param-name>
                 <param-value>/WEB-INF/APIService_Config.properties</param-value>
              </init-param>
              <load-on-startup>0</load-on-startup>
         </servlet>
       <servlet-mapping>
          <servlet-name>API</servlet-name>
          <url-pattern>/api/*</url-pattern>
       </servlet-mapping>The xrpcc tool would create all my stubs, and it would create the *Config.properties file referenced in the web.xml. I could bundle these with my other classes, and everything would work. Very nice.
    JWSDP 1.2 introduced wscompile/wsdeploy. These tools started requiring WARs (which SUCKS for large projects during development, btw. PLEASE ADD OTHER OPTIONS, SUN!!!!!).
    wscompile also quit creating the Config.properties file. However, I was able to keep my old build process working by holding onto the Config.properties files from 1.1 and using the same web.xml definition.
    My questions are:
    1. What tool generates this *Config.properties file? How can I get back to this?
    2. Is the configuraiton I'm using optimal for use with 1.2 (I haven't even looked at 1.3 yet)?
    3. Does anyone else build/deploy not using WAR files?!? Do you have any ideas/suggestions/experience that might be helpful.

    I dont know if this will help, but I also use a config.properties to load my servlet values and also using JWSDP 1.2 .
    I manually create the config file ( since i know what values to expect )
    I run wscompile/wsdeploy over my files to create the war file containing tie + wsdl + utility classes
    This is then extracted to a temp directory .
    Here I maually edit my web.xml and copy the config file across to WEB_INF directory .
    Note that the wsdl file has to be in the same directory as the WEB-INF....
    This may sound quite long winded to do , but works fine for me ..

  • Problem with .war files

              I have created a .war file with my servlets in
              /WEB-INF/classes directory and all other classes jared into a single jar file
              in /WEB-INF/lib,but on calling the servlet only those classes that the servlet
              uses directly are recognized but for the other classes it gives an exception NoClassDef
              found.I later changed the .war file so that all the classes are put into /WEB-INF/classes
              directory directly(no jar),but this time it again fails with the same excception,is
              this a bug in weblogic or am I doing things wrong.please clarify.
              thanks and regards
              vijay
              

    Bobby,
              This appears to be a known problem and has been addressed by CR065104. Please
              contact support to obtain the appropriate patch.
              Thanks,
              Simon
              Developer Relations Engineer
              BEA Support
              Bobby Nations wrote:
              > Vijay,
              >
              > You're not alone, I'm experiencing these problems when moving a .war file
              > from WLS 6.1.0 to WLS 6.1.2. I'm running WLS 6.1.0 on my development
              > server, and whenever I deploy a .war file there, it finds the jar files
              > in WEB-INF/lib and handles everything properly. I move that exact .war
              > file to my staging server (one rung below production) along with the
              > config.xml and start script from development, and blammo, no go. It
              > complains of ClassNotFound for any class contained in a jar file under
              > the WEB-INF/lib directory. So, my symptoms break down like so: works for
              > WLS 6.1.0 but not for WLS 6.1.2.
              >
              > I think that this must be a bug in service pack 2 of WLS 6.1.
              >
              > Bobby
              >
              > In article <3bbc80e9$[email protected]>, "Vijayanand.R"
              > <[email protected]> wrote:
              >
              > > Hi Udit,
              > > thanks for the reply,
              > > the package under WEB-INF/classes is fine,it invokes the servlet too but
              > > it fails to recognize the jar under WEB-INF/lib and complains that the
              > > particular class it is looking for is not found
              > > Regards
              > > Vijay
              

  • Redeploying war files WL 7.0

    When a war file is updated and uploaded this error occurs when redeploying
    weblogic.management.ApplicationException: Prepare failed. Task Id = 10
    Start server side stack trace:
    weblogic.management.ApplicationException: Prepare failed. Task Id = 10
    Module Name: emi.war, Error: weblogic.j2ee.DeploymentException: Cannot deploy
    ServletContext(id=87601,name=emi.war,context-path=/emi) from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war
    on prod-ms-a-1 because there is already a webapp named ServletContext(id=3674494,name=emi.war,context-path=/emi)
    loaded from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war,
    which is using the context path /emi.
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:697)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:576)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1064)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    Module Name: emi.war, Error: weblogic.j2ee.DeploymentException: Cannot deploy
    ServletContext(id=87601,name=emi.war,context-path=/emi) from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war
    on prod-ms-a-1 because there is already a webapp named ServletContext(id=3674494,name=emi.war,context-path=/emi)
    loaded from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war,
    which is using the context path /emi.
    Despite destroying the old war file to deploy this new one .Only when the server
    is restarted does the deployment work .
    please help
    Sandra

    When a war file is updated and uploaded this error occurs when redeploying
    weblogic.management.ApplicationException: Prepare failed. Task Id = 10
    Start server side stack trace:
    weblogic.management.ApplicationException: Prepare failed. Task Id = 10
    Module Name: emi.war, Error: weblogic.j2ee.DeploymentException: Cannot deploy
    ServletContext(id=87601,name=emi.war,context-path=/emi) from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war
    on prod-ms-a-1 because there is already a webapp named ServletContext(id=3674494,name=emi.war,context-path=/emi)
    loaded from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war,
    which is using the context path /emi.
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:697)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:576)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1064)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    Module Name: emi.war, Error: weblogic.j2ee.DeploymentException: Cannot deploy
    ServletContext(id=87601,name=emi.war,context-path=/emi) from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war
    on prod-ms-a-1 because there is already a webapp named ServletContext(id=3674494,name=emi.war,context-path=/emi)
    loaded from /ec/prod/server/weblogic/projects/prod/prod-ms-a-1/stage/emi-all-1.9p5/emi.war,
    which is using the context path /emi.
    Despite destroying the old war file to deploy this new one .Only when the server
    is restarted does the deployment work .
    please help
    Sandra

Maybe you are looking for