Java.util.zip java.util.jar API usage

I have been trying unsuccessfully for the past two days to be able to programatically add and extract files into and from a JAR using the API. I haven't found any API docs that cover the basics and I have been stumped using the nuggets that I have found on the Forum so far. Below is the code so far. Feel free to use what works in your programs, but if you find out how to get this to work. Sorry for the long post, but I gather this is a common problem that needs to be solved.
___________JAR CLASS_______________
import java.io.*;
import java.util.*;
import java.util.jar.*;
import java.util.zip.*;
public class Jar {
    public Jar() {
    public boolean copyToJar(File[] sources, File destination) {
        if (destination == null) {
            return false;
        if (nameContainsWildcards(destination)) {
            return false;
        File[] sourceArray = expandWildcards(sources);
        if (sourceArray == null) {
            System.out.println("sourceArray was empty");
            return false;
          System.out.println("Ready to add " + sourceArray.length + " files to " + destination);
          //variables for copying the old destination file to the new destination
          File tmpFile = null;
          JarFile tmpJarFile = null;
          InputStream jarInput = null;
          JarInputStream jarIn = null;
        InputStreamReader jarDataFile = null;
          //variables for the destination
        OutputStream output = null;
        JarOutputStream jarOut = null;
        File input = null;
        FileInputStream dataFile = null;
        int buf = -1;
          if (destination.exists()) {
               System.out.println("The destination file exists");
               //copy the destination to temporary
               //fix copyToJar to use the same .tmp file name as the destination (for reentrant code)
               tmpFile = new File(destination.getParent() + "\\" + "jar.tmp");
               if (tmpFile.exists()) {
                    tmpFile.delete();
               //rename the original to the TempFile
               destination.renameTo(tmpFile);
               if (destination.exists()) {
                    destination.delete();
               try {
                    tmpJarFile = new JarFile(tmpFile);
               } catch (IOException ioe) {
                    System.out.println("Exception while creating JarFile " + ioe );
        try {
               //initialize the destination
            output = new FileOutputStream(destination);
            jarOut = new JarOutputStream(output);
               //if there is a tmpFile copy contents of tmpFile to the new destination
               if (tmpFile != null) {
                    jarInput = new FileInputStream(tmpFile);
                    jarIn = new JarInputStream(jarInput);
                    ZipEntry ze = null;
                    boolean contains = false;
                    while((ze = jarIn.getNextEntry()) != null) {
                         System.out.println("Working on zipEntry " + ze.getName());
                         contains = false;
                         for (int i=0; i<sourceArray.length; i++) {
                              if (ze.getName().compareToIgnoreCase(sourceArray.getName()) == 0) {
                                   contains = true;
                         if (contains == false) {
          jarDataFile = new InputStreamReader(tmpJarFile.getInputStream(ze));
                              System.out.println("The zip Entry was copied from the old file");
                              jarOut.putNextEntry(ze);
                              buf = -1;
                              buf = jarDataFile.read();
                              while (buf != -1) {
                                   jarOut.write(buf);
                                   buf = jarDataFile.read();
                              jarOut.closeEntry();
                              jarDataFile.close();
                    jarIn.close();
                    jarInput.close();
                    tmpFile.delete();
                    tmpJarFile.close();
               //copy the new files to the destination
for (int i=0; i<sourceArray.length; i++) {
if (sourceArray[i].isDirectory()) {
                         //fix copyToJar to copy entire directory if the directory is given as a source
} else {
System.out.println("Adding " + sourceArray[i].getAbsolutePath() + " to "
+ destination.getAbsolutePath());
dataFile = new FileInputStream(sourceArray[i]);
ZipEntry entry= new ZipEntry(sourceArray[i].getName());
jarOut.putNextEntry(entry);
buf = -1;
buf = dataFile.read();
while (buf != -1) {
jarOut.write(buf);
buf = dataFile.read();
jarOut.closeEntry();
jarOut.close();
output.close();
dataFile.close();
} catch (IOException ioe) {
System.out.println("Exception " + ioe + " occured while writing the backup jar file.");
try {
if (jarOut != null)
jarOut.close();
if (output != null)
output.close();
if (dataFile != null)
dataFile.close();
if (jarInput != null)
jarInput.close();
if (jarIn != null)
jarIn.close();
} catch (IOException ioe2) {
System.out.println("Exception " + ioe2 + " closing the jar file.");
return false;
return true;
public boolean copyToJar(File source, File destination) {
File[] sourceArray = expandWildcards(source);
if (sourceArray == null) {
System.out.println("sourceArray was empty");
return false;
return copyToJar(sourceArray, destination);
     public boolean extractFromJar(File source, File extract, File destDirectory) {
          try {
               JarFile jarIn = new JarFile(source);
               ZipEntry ze = jarIn.getEntry(extract.getName());
               if (ze == null) {
                    System.out.println("Could not find file " + extract + " in jarFile " + source);
               } else {
                    JarInputStream jarInput = null;
                    InputStreamReader buf = null;
                    FileOutputStream out = null;
                    InputStream in = jarIn.getInputStream(ze);
                    buf = new InputStreamReader(in);
                    out = new FileOutputStream(extract);
                    int buffer = -1;
                    buffer = buf.read();
                    while (buffer != -1) {
                         out.write(buffer);
                         buffer = buf.read();
          } catch (IOException ioe) {
               System.out.println("Could not extract the file " + extract + " from jarFile " + source);
               return false;
          return true;
public int numberOfLines(File fileToCount) {
int num = 0;
try {
FileReader regRead = new FileReader(fileToCount);
LineNumberReader regReadLine = new LineNumberReader(regRead);
while (regReadLine.readLine() != null) {
num = regReadLine.getLineNumber();
regRead.close();
regReadLine.close();
} catch (IOException ioe) {
System.out.println("Exception " + ioe + " occured in " + this.getClass().getName());
return num;
static public boolean nameContainsWildcards(File source) {
if (source != null) {
if ((source.getName().indexOf('*')) >=0) {
return true;
//fix this check to look for other wildcards
return false;
* Expands the * wildcard that does not start the expression. For example,
* in a directory whose contents are TEST1.DAT, TEST2.DAT AND TEST3.DAT, this
* funtion will return the following based on the input
* Input Returns
* TEST1.DAT File[] containing the first file
* TEST*.DAT File[] containing all three files plus any that match TEST*.*
* T*.* File[] containing all three files plus any that match T*.*
* *.* File[] containing all three files plus any that match *.*
* EST.DAT File[] containing no files (not a legal expression...yet)
* ? or
public File[] expandWildcards(File source) {
if (source == null) {
System.out.println("Cannot expand wildCards for a null File");
return null;
File[] sourceArray = null;
if (nameContainsWildcards(source)) {
FileFilter wildcardFilter = new WildcardFilter(source.getName());
File sourceParent = new File(source.getParent());
if (sourceParent != null) {
sourceArray = sourceParent.listFiles(wildcardFilter);
} else {
sourceArray = new File[1];
sourceArray[0] = source;
} else {
sourceArray = new File[1];
sourceArray[0] = source;
return sourceArray;
public File[] expandWildcards(File[] sources) {
File[] sourceArray = null;
List fileArrays = new ArrayList();
for (int i=0; i< sources.length; i++) {
fileArrays.add(expandWildcards(sources[i]));
int totalFiles = 0;
for (int i=0; i < fileArrays.size(); i++) {
File[] tmp = (File []) fileArrays.get(i);
if (tmp != null) {
     //System.out.println("Adding " + tmp.length + " to total files");
     totalFiles += tmp.length;
System.out.println("totalFiles expanded = " + totalFiles);
sourceArray = new File[totalFiles];
int nextIndex = 0;
for (int i=0; i < fileArrays.size(); i++) {
File[] tmp = (File []) fileArrays.get(i);
if (tmp != null) {
                    for(int j=0; j < tmp.length; j++) {
                         //System.out.println("Adding file " + tmp[j] + " to sourceArray");
                         sourceArray[nextIndex] = tmp[j];
                         nextIndex++;
return sourceArray;
static public void main(String argv[]) {
Jar jarRun = new Jar();
File testFile = new File("D:\\test.jar");
          File testFile1 = new File("C:\\Program Files\\RBusinessSystems\\Location Sync\\LONGMONT\\LongmontDefaultCustomers.jar");
          File testFile2 = new File("C:\\Program Files\\RBusinessSystems\\Location Sync\\LONGMONT\\LongmontDefaultInventory.jar");
          File testFile3 = new File("C:\\Program Files\\RBusinessSystems\\Location Sync\\LONGMONT\\LongmontDefaultVendors.jar");
          File testFile4 = new File("C:\\Program Files\\RBusinessSystems\\Location Sync\\LONGMONT\\LongmontDefaultClerks.jar");
          if (argv.length >= 1) {
               System.out.println("Creating the Jar File");
               jarRun.copyToJar(testFile1, testFile);
               jarRun.copyToJar(testFile2, testFile);
               jarRun.copyToJar(testFile3, testFile);
               jarRun.copyToJar(testFile4, testFile);
          } else {
               System.out.println("Extracting from the Jar File");
               jarRun.extractFromJar(testFile, new File("d:\\LongmontDefaultCustomers.jar"), new File("d:\\"));
               jarRun.extractFromJar(testFile, new File("d:\\LongmontDefaultInventory.jar"), new File("d:\\"));
               jarRun.extractFromJar(testFile, new File("d:\\LongmontDefaultVendors.jar"), new File("d:\\"));
               jarRun.extractFromJar(testFile, new File("d:\\LongmontDefaultClerks.jar"), new File("d:\\"));
______________WILDCARD FILTER CLASS __________
import java.io.File;
import java.io.FileFilter;
public class WildcardFilter implements FileFilter {
    private String compare = null;
    private String wildcardStart = null;
    private String wildcardMiddle = null;
    private String wildcardEnd = null;
    WildcardFilter(String comparison) {
        setCompare(comparison);
    public void setCompare(String comparison) {
        compare = comparison.toLowerCase();
        wildcardStart = null;
        wildcardMiddle = null;
        wildcardEnd = null;
        int index = compare.indexOf('*');
        if (index != -1) {
            wildcardStart = compare.substring(0, index);
            if (index + 1 < compare.length()) {
                wildcardEnd = compare.substring(index + 1, compare.length());
            System.out.println("Expanding fileNames starting with " + wildcardStart
                      + " and ending with " + wildcardEnd);
    public boolean accept(File check) {
        String checkName = check.getName().toLowerCase();
        if (compare == null) {
            return false;
        if (((wildcardEnd == null) || (wildcardEnd.compareTo("") == 0))
            && ((wildcardStart == null) || (wildcardStart.compareTo("") ==0))) {
            return false;
        if (((wildcardStart == null) || (wildcardStart.compareTo("") ==0))
            && (wildcardEnd != null)) {
            if ((wildcardEnd.compareTo(".*") ==0) || (wildcardEnd.compareTo("*") == 0))
                return true;
            if (checkName.endsWith(wildcardEnd))
                return true;
        if (((wildcardEnd == null) || (wildcardEnd.compareTo("") == 0))
            && (wildcardStart != null)) {
            if (checkName.startsWith(wildcardStart))
                return true;
        if ((checkName.startsWith(wildcardStart))
            && (checkName.endsWith(wildcardEnd))) {
            return true;
        return false;

I figured it out based on some of the other posts I found on this Forum. Following is the working code. While this code is not as robust as it needs to be for production, it will at least get you started on extracting from jar files and writing to jarfiles.
import java.io.*;
import java.util.jar.*;
import java.util.zip.*;
//NOTE: You can only copy entries created by the Jar tool
class JarTest {
    JarTest() {
    public boolean copyToJar(File[] fileList, File jarFile) {
        JarEntry je = null;
        File tmpFile = null;
        FileOutputStream fos = null;
        JarOutputStream jos = null;
        BufferedWriter bw = null;
        FileInputStream fis = null;
        JarInputStream jis = null;
        BufferedReader br = null;
        int buf = -1;
        boolean badZipFile = false;
        boolean refreshFromNewFile = false;
        String tmpFileName = jarFile.getAbsolutePath() + ".tmp";
        try {
            tmpFile = new File(tmpFileName);
            fos = new FileOutputStream(tmpFile);
            jos = new JarOutputStream(fos);
            bw = new BufferedWriter(new OutputStreamWriter(jos));
        } catch (IOException ioe) {
            ioe.printStackTrace();
    if(jarFile.exists()) {
            try {
                fis = new FileInputStream(jarFile);
                jis = new JarInputStream(fis);
                br = new BufferedReader(new InputStreamReader(jis));
            } catch (IOException ioe) {
                System.out.println(ioe);
            try {
                while((je = jis.getNextJarEntry()) != null) {
                    refreshFromNewFile = false;
                    for (int i = 0; i < fileList.length; i++) {
                        if (je.getName().compareToIgnoreCase(fileList.getName()) == 0) {
refreshFromNewFile = true;
if (refreshFromNewFile) {
//do nothing so we can add the new file below
} else {
jos.putNextEntry(je);
int index = 0;
buf = -1;
while((buf = br.read()) != -1) {
bw.write(buf);
index++;
System.out.println("Copied entry " + je.getName() + " of " + index + " bytes from " + jarFile.getName());
bw.flush();
jos.closeEntry();
} catch (IOException ioe) {
ioe.printStackTrace();
badZipFile = true;
try {
br.close();
jis.close();
fis.close();
} catch (IOException ioe) {
ioe.printStackTrace();
for (int i = 0; i < fileList.length; i++) {
try {
fis = new FileInputStream(fileList[i]);
br = new BufferedReader(new InputStreamReader(fis));
// write the new entries to the tmpFile
je = new JarEntry(fileList[i].getName());
jos.putNextEntry(je);
int index = 0;
buf = -1;
while((buf = br.read()) != -1) {
bw.write(buf);
index++;
bw.flush();
System.out.println("Added entry " + je.getName() + " of " + index + " bytes.");
jos.closeEntry();
} catch (IOException ioe) {
ioe.printStackTrace();
badZipFile = true;
try {
jos.close();
if (tmpFile != null) {
// rename the tmpFile to jarFile
jarFile.delete();
tmpFile.renameTo(jarFile);
} catch (IOException ioe) {
ioe.printStackTrace();
return true;
public boolean extractFromJar(File[] fileList, File jarFile) {
ZipEntry zen = null;
BufferedReader br = null;
FileOutputStream fos = null;
BufferedWriter bw = null;
try {
for (int i = 0; i < fileList.length; i++) {
JarFile jar = new JarFile(jarFile);
zen = jar.getEntry(fileList[i].getName());
if (zen == null) {
System.out.println("Could not find the file " + fileList[i].getName() + " in the zip file " + jar.getName());
} else {
File parentDirectory = new File(fileList[i].getParent());
parentDirectory.mkdirs();
InputStream in = jar.getInputStream(zen);
br = new BufferedReader(new InputStreamReader(in));
fos = new FileOutputStream(fileList[i]);
bw = new BufferedWriter(new OutputStreamWriter(fos));
int buf = -1;
int index = 0;
while((buf = br.read()) != -1) {
bw.write(buf);
bw.flush();
index++;
System.out.println("Extracted file " + fileList[i] + " of " + index + " bytes from " + jarFile);
br.close();
bw.close();
} catch (IOException ioe) {
System.out.println(ioe);
return false;
return true;
public static void main(String[] argv) {
JarTest jt = new JarTest();
File jarFile = new File("d:\\test\\test.zip");
File[] fileList1 = new File[] {new File("d:\\test\\CustomerRefreshRequest.bat"),
                                        new File("d:\\test\\CustomerUpdateGet.bat"),
                                        new File("d:\\test\\CustomerUpdateRequest.bat"),
                                        new File("d:\\test\\LongmontDefaultClerks.jar"),
                                        new File("d:\\test\\LongmontDefaultCustomers.jar"),
                                        new File("d:\\test\\LongmontDefaultInventory.jar")};
File[] fileList2 = new File[] { new File("d:\\test\\install.bat"),
new File("d:\\test\\LongmontDefaultVendors.jar"),
new File("d:\\test\\CustomerUpdateSend.bat") };
jt.copyToJar(fileList1, jarFile);
jt.copyToJar(fileList2, jarFile);
File[] fileList3 = new File[] {new File("d:\\test\\temp\\CustomerRefreshRequest.bat"),
                                        new File("d:\\test\\temp\\CustomerUpdateGet.bat"),
                                        new File("d:\\test\\temp\\CustomerUpdateRequest.bat"),
                                        new File("d:\\test\\temp\\LongmontDefaultClerks.jar"),
                                        new File("d:\\test\\temp\\LongmontDefaultCustomers.jar"),
                                        new File("d:\\test\\temp\\LongmontDefaultInventory.jar")};
File[] fileList4 = new File[] { new File("d:\\test\\temp\\INSTALL.BAT"),
new File("d:\\test\\temp\\LongmontDefaultVendors.jar"),
new File("d:\\test\\temp\\CustomerUpdateSend.bat") };
jt.extractFromJar(fileList3, jarFile);
jt.extractFromJar(fileList4, jarFile);

Similar Messages

  • Running JAR gives me java.util.zip.ZipException

    I just made a JAR--we'll call it MyApp.jar--containing some classes in the JAR's main directory (that is, not in any subfolder, just in the top level), and the following manifest that I put in from a text file i called "MANIFEST.MF":
    "Main-Class: MyApp (i also tried using "MyApp.class")
    Class-Path: smartjcommon_1.6.jar smartjprint_1.5.6.jar smartjprint_demo.jar
    Those JARs in the class-path are three JAR files in the same directory as MyApp.jar that are used as external libraries for my program. I go to the command prompt, go to the directory with these JARs, and type in:
    java -jar MyApp (i also tried adding -window at the end, as I've seen done, since it's a Swing program)
    and I get:
    Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified
    at java.util.zip.ZipFile.open(Native Method)
    etc etc
    I'm sure it's a very simple problem, but what am I doing wrong?

    You aren't spelling the name of the jar file correctly. Tryjava -jar MyApp.jarinstead.

  • Signed jar:  java.util.zip.ZipException: invalid entry size

    Hi, I have written an applet using Java 1.4. The applet contains multiple .class and .gif files. I jared the files to produce a single .jar file with the manifest. Then I signed that jar file with jarsigner that produced a self-signed jar with the certificate. When I run the applet in IE6 on my computer (Windows XP) it works fine - I got the certificate dialog box popping up and the applet loads normally. My computer does not have a Web server installed so everything happens locally.
    As soon as I move the html and signed jar files to the server and try to call it from my PC, the Java console displays the following message:
    java.util.zip.ZipException: invalid entry size (expected 1342177310 but got 7728 bytes)
         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:363)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:142)
         at sun.plugin.cache.CachedJarLoader.decompress(CachedJarLoader.java:397)
         at sun.plugin.cache.CachedJarLoader.access$500
    CachedJarLoader.java:53)
         at sun.plugin.cache.CachedJarLoader$5.run(CachedJarLoader.java:335)
         at java.security.AccessController.doPrivileged(Native Method)
    etc... it's huge
    I have been through the forums, some people have similiar problem while trying to sign their jar, well, mine signs OK, it's just the fact that it doesn't run ... I've tried to kill the manifest and then re-sign the jar. I also tried to jar the files with -0 option - nothing worked. I do appreciate if someone could point me in the right direction.
    Thanks

    I have managed to work this one out: UNIX servers don't like jar files FTPed using ASCII. They should should be transferred in binary mode. I have installed an FTP client on my PC, switched to binary mode and re-transferred the jar file and it worked straight away.
    Thanks.

  • Java.util.zip.ZIPException

    We are using Oracle Application Server 10g (10.1.2) with AIX OS version 5.3 release 6.
    We are getting error while deploying a "*.war" file. Below is the full error we have got during the installation.
    Error starting from below.
    Failed to deploy web application. File /tmp/dir1341.tmp/abc.war is not a jar file.
    Resolution :
    Base Exception:
    java.util.zip.ZIPException
    Error opening zip file /tmp/dir1341.tmp/abc.war
    Error opening zip file /tmp/dir1341.tmp/abc.war
    Kindly suggest the best provided solution for the same.
    Also let us know about the error belongs Oracle AS application?
    OR
    AIX OS Level error?

    Well as the error suggests, it is neither related to OracleAS nor AIX OS. It is complaining about the WAR file you are trying to deploy. Make sure your abc.war is a well formed WAR file. You can search google for tool to validate a war file.
    Thanks
    Shail

  • Error(5): java.util.zip.ZipException: invalid entry size (expected 2875 but

    Hi all!
    I'm getting this error when I try to execute my application in JDeveloper: Error(5): java.util.zip.ZipException: invalid entry size (expected 2875 but got 2845 bytes)
    This started to happen after I had checkout my application to CVSNT.
    Any help?
    P.S. I'm using JDeveloper 10.1.3 with CVSNT 2.5

    My cvswrappers file (CVSNT):
    *.cab -kb
    *.class -kb
    *.doc -kb
    *.dll -kb
    *.ear -kb
    *.exe -kb
    *.exp -kb
    *.fla -kb
    *.gif -kb
    *.gz -kb
    *.jar -kb
    *.jpg -kb
    *.jpeg -kb
    *.lib -kb
    *.msi -kb
    *.mso -kb
    *.pdf -kb
    *.pfw -kb
    *.png -kb
    *.ppt -kb
    *.sit -kb
    *.swf -kb
    *.tar -kb
    *.tlb -kb
    *.vsd -kb
    *.xls -kb
    *.war -kb
    *.wmz -kb
    *.zip -kb Via Tortoise client I can add and commit zip (jar) files in binary format and everything is OK.
    If I do that via Jdev, anybody who checkout that module from cvs have zip exception, because JDev didnt sent in binary format. How to setup that?
    Thanx
    Message was edited by:
    vpetreski

  • Java.util.zip.ZipException Error

    I created a jar file, and put in C:\tools
    C:\tools>java -jar myjar.jar is working fine
    However, if I try to run myjar.jar in other directories, then I have problems.
    I already set the classpath:
    SET CLASSPATH=.;%CLASSPATH%;C:\tools\myjar.jar;
    Here's the error. Any ideas???
    C:\>java -jar myjar.jar
    Exception in thread "main" java.util.zip.ZipException: The system cannot find th
    e file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:117)
    at java.util.jar.JarFile.<init>(JarFile.java:55)

    You always need to specify a proper file name when you use the -jar switch. If you are not in c:\tools you have to run with "java -jar c:\tools\myjar.jar".
    Setting the classpath in particular doesn't help becuase the file name given to the -jar switch will override all settings for classpath. http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html#userclass
    But since you now have myjar.jar in your classpath, you can run the application from any directory with "java your.main.ClassName" :)

  • Java.util.zip.ZipException error when building

    Good Day All,
    I am a newbie and this is my first JWS deployment. I have an app that I am writing in Netbeans 6.1 that I want to deploy via JWS. The app accesses five different JAR libraries and that is where my troubles started. I thought that I needed to figure a way to configure Netbeans so the libraries would be deployed with my app JAR so it would run correctly using JWS.
    I was trying to get things working and now my problem is that when I build I am getting the following error:
    init:
    deps-jar:
    compile:
    Copy libraries to C:\Java\DataMed\dist\lib.
    To run this application from the command line without Ant, try:
    java -jar "C:\Java\DataMed\dist\DataMed.jar"
    jnlp:
    jnlp-init-generate-master:
    C:\Java\DataMed\nbproject\jnlp-impl.xml:61:  The following error occurred while executing this line:
    C:Java\DataMed\nbproject\jnlp-impl.xml:386:  java.util.zip.ZipException:  error in opening zip file
    BUILD FAILED (total time: 0seconds)Scrolling to line 386 in the jnlp-impl.xml file it says:
    componentsprop="jnlp.components">I futzed with my options so much I can't seem to figure out how to get everything reset so I can get a clean build ! As a newbie to Netbeans I sometimes have difficulty figuring out where all the different things are hidden ... I **think** it all went bad when I was working on the Properties > Libraries > Compile > Compile-time Libraries but I can't remember.
    So I have two questions really:
    1) How can I resolve the ZipException error? I suspect it is one of the JAR libraries but how can I tell ?
    2) How do I get JWS to find my five libraries ? I now suspect that I am supposed to upload the five libraries to the webserver and then in my JNLP it will have links to the libraries in the <resources> part of the code. Is that correct ?
    Edited by: DBirdManAR on Aug 10, 2008 7:22 AM
    Rather than spend to much time figuring this out, I just used my revert modifications through my SVN to go back to a previous version that builds correctly.

    Hi,
    I have the same problem but I cannot solve it.
    Help much appreciated.
    Regards,

  • [J2EE:160029] I/O error... java.util.zip.ZipException

    Hi,
    I'm using BEA WLS8.1 SP4 on HPUX Itanium2 with JDK 1.4.2.05.
    When I'm trying to deploy my app's ear file it's throwing
    out the error shown below (far below).
    I've placed the ear file in /opt/bea_wls/weblogic81/server/bin/myserver/upload directory with all the permissions set.
    Please could someone help me resolve this.
    Thanks
    Mouli
    [J2EE:160029]I/O error while reading deployment - java.util.zip.ZipException: Could not find End Of Central Directory. java.util.zip.ZipException: Could not find End Of Central Directory at java.util.zip.ZipFile.open(Ljava.lang.String;I)I(Unknown Source) at java.util.zip.ZipFile.<init>(Ljava.io.File;I)V(Unknown Source) at java.util.jar.JarFile.<init>(Ljava.io.File;ZI)V(JarFile.java:127) at java.util.jar.JarFile.<init>(Ljava.io.File;)V(JarFile.java:92) at weblogic.j2ee.J2EEUtils.getArchiveEarInfo(Ljava.io.File;)Lweblogic.j2ee.DeploymentInfo;(J2EEUtils.java:294) at weblogic.j2ee.J2EEUtils.getDeploymentInfo(Ljava.io.File;)[Lweblogic.j2ee.DeploymentInfo;(J2EEUtils.java:206) at weblogic.j2ee.J2EEUtils.getDeploymentInfo(Lweblogic.application.ApplicationFileManager;)[Lweblogic.j2ee.DeploymentInfo;(J2EEUtils.java:158) at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(Ljava.io.File;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lweblogic.management.configuration.ApplicationMBean;(J2EEApplicationContainerFactory.java:464) at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.management.deploy.DeploymentData;Ljava.lang.String;Z)Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;(DeployerRuntime.java:854) at weblogic.management.deploy.DeployerRuntime.access$000(Lweblogic.management.deploy.DeployerRuntime;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.management.deploy.DeploymentData;Ljava.lang.String;Z)Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;(DeployerRuntime.java:69) at weblogic.management.deploy.DeployerRuntime$1.run()Ljava.lang.Object;(DeployerRuntime.java:1532) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121) at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.management.deploy.DeploymentData;Ljava.lang.String;ZI)Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;(DeployerRuntime.java:1523) at weblogic.management.deploy.DeployerRuntime.activate(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.management.deploy.DeploymentData;Ljava.lang.String;Z)Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;(DeployerRuntime.java:192) at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source) at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(DynamicMBeanImpl.java:754) at weblogic.management.internal.DynamicMBeanImpl.invoke(Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(DynamicMBeanImpl.java:733) at com.sun.management.jmx.MBeanServerImpl.invoke(Ljava.lang.Object;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:1560) at com.sun.management.jmx.MBeanServerImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:1528) at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(RemoteMBeanServerImpl.java:988) at weblogic.management.internal.RemoteMBeanServerImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(RemoteMBeanServerImpl.java:946) at weblogic.management.internal.MBeanProxy.invoke(Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MBeanProxy.java:954) at weblogic.management.internal.MBeanProxy.invokeForCachingStub(Ljava.lang.String;[Ljava.lang.Object;)Ljava.lang.Object;(MBeanProxy.java:481) at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.management.deploy.DeploymentData;Ljava.lang.String;Z)Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;(DeployerRuntimeMBean_Stub.java:1139) at weblogic.management.console.actions.mbean.ApplicationDeployAction.prePerform(Lweblogic.management.console.actions.ActionContext;Lweblogic.management.console.actions.RequestableAction;)Lweblogic.management.console.actions.RequestableAction;(ApplicationDeployAction.java:179) at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(Lweblogic.management.console.actions.ActionContext;)Lweblogic.management.console.actions.Action;(DoMBeanWizardAction.java:215) at weblogic.management.console.actions.internal.ActionServlet.doAction(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ActionServlet.java:173)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi
    THis may be due to the file was FTP to the directory as ASCII mode ...
    Or the file is corrupt.
    Try to pacgake again (with jar command)
    Jin

  • Java.lang.Error: java.util.zip.ZipException: The system cannot find the fil

    I got maven 221 installed
    i got jdk 1.6 and 1.5 installed (have tested both)
    I have a strange error. All my co-workers can build but I cant. The only thing I can find is that I dont have installed BEA Weblogic but I dont want to have that installed. It should be able to run anyway.
    Could someone tell me what is wrong? If you need pom.xml I got that one as well.
    process-classes:
    [copy] Copying 4 files to C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content
    [mkdir] Created dir: C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-jar
    [java] Creating an MJF from the contents of directory C:\hudson\jobs\albpm_ip-identity-asserter_-_Build\workspace\target\mbean-content...
    [java] Compiling the files...
    [java] Creating the list.
    [java] Doing the compile.
    [java] WLMaker-SubProcess: : Exception in thread "main" java.lang.Error: java.util.zip.ZipException: The system cannot find the file specified
    [java] WLMaker-SubProcess: :      at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:93)
    [java] WLMaker-SubProcess: :      at weblogic.management.commo.BeanGenDriver.main(BeanGenDriver.java:117)
    [java] WLMaker-SubProcess: : Caused by: java.util.zip.ZipException: The system cannot find the file specified
    [java] WLMaker-SubProcess: :      at java.util.zip.ZipFile.open(Native Method)
    [java] WLMaker-SubProcess: :      at java.util.zip.ZipFile.<init>(ZipFile.java:203)
    [java] WLMaker-SubProcess: :      at java.util.jar.JarFile.<init>(JarFile.java:132)
    [java] WLMaker-SubProcess: :      at java.util.jar.JarFile.<init>(JarFile.java:97)
    [java] WLMaker-SubProcess: :      at weblogic.management.commo.BeanGenDriver.getManagementTempDir(BeanGenDriver.java:90)
    [java] WLMaker-SubProcess: :      ... 1 more
    [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    [java] BeanGen code generation failed
    [HUDSON] Archiving C:\hudson\jobs\albpm_ip-identity-asserter_-Build\workspace\pom.xml to C:\hudson\jobs\albpmip-identity-asserter_-Build\modules\dk.skat.ip.integration.albpm$ip-identity-asserter\builds\2010-11-2213-41-28\archive\dk.skat.ip.integration.albpm\ip-identity-asserter\1.2\pom.xml
    [INFO] ------------------------------------------------------------------------

    from my experience, using weblogic jars can be a pain if the full install is not on the local box.
    Note that you dont have to 'install' it. Just copy the directory.
    Reason is that the jar files have manifests with relative classpaths.
    For an example of horror take a look at the weblogic.jar MANIFEST's classpath entry.
    -Fred

  • Error in deploying p6.ear on WebLogic: java.util.zip.ZipException: invalid entry CRC

    Hello,
    We're trying to install Primavera EPPM 8.3 and test it on our server but having troubles in deploying p6 application.
    We have successfully installed the following prerequisites:
    - WebLogic 11g
    - JDK1.7.0_45 and setting JAVA_HOME path=C:\Program Files\Java\jdk1.7.0_45 in enviornmental variables
    - Downloading wsdl4j-1.6.2.jar for web services
    - Running the setup.exe file (located in PEPPM path\Disk1\install\setup.exe
    - Successfully finished the setup and running the Configuration Wizard.
    - Successfully created the database using Microsoft SQL Server 2008 database
    - Successfully creating a new WebLogic domain.
    - We didn't install BI publisher nor any content repository ( would this affect running the primavera application? )
    - In the configuration wizard summary we can see everything is marked successfully except the "Start Web Logic" step it showed an error and a message indicating that we should start it manually ( however, the domain is successfully created ).
    Next, we run the startWebLogic.cmd file in our new created domain, then we run startNodeManager.cmd from WebLogic common/bin directory.
    We can access the WebLogic administration panel successfully but no "p6" application in the deployments.
    So, we click "install" then open the p6 directory and deploy it without errors.
    But when when starting the P6 server and then try to start p6 application, it failed with the following error message:
    java.util.zip.ZipException: invalid entry CRC (expected 0xa0a67af0 but got 0xef73b950)
    Can you please help us to solve this? Please note that every other deployment is running correctly except p6.

    The cause of errors was a dying Westen Digital drive, specially the 48G partition reserved only for $ORACLE_BASE (/dev/sdb3 mounted on /opt/oracle).
    A simple quick scan of unmounted partition (badblocks -v /dev/sdb3) reported more than thousand new bad blocks (compared to the last scan six months ago). Although I strongly believe, specially in the case of WDC drives, that the best utility to "repair" bad blocks is the one that opens a window and prints the message: "Go to the nearest shop and buy a new drive", I was very curious to prove my suspicion just on this drive. After zero-filling the partition with dd, then formatting it (mke2fs -cc) and mounting again, the 11g installation and database creation (on the same partition) successfully completed, performing fast and smoothly. To make sure it was not a casual event, I repeated the installation once again with full success. The database itself is working fine (by now). Well, the whole procedure took me more than four hours, but I'm pretty satisfied. I learned once again - stay away from Western Digital. As Oracle cannot rely on dying drive, my friend is going tomorrow to spend a 150+ euro on two 250G Seagate Barracudas and replace both WDC drives, even though the first drive seems to be healthy.
    In general there is no difference between loading correct data from good disk into bad memory and loading the incorrect data from dying disk into good memory. In both cases the pattern is damaged. For everyone who runs into the problem similar to this, and the cause cannot be easily determined, the rule of thumb must be:
    1. test memory and, if it shows any error, check sockets and test memory modules individually
    2. check disks for bad blocks regardless of the result of memory testing
    Therefore I consider your answer being generally correct.
    Regards
    NJ

  • Java.util.map in a jar?

    My applet works on Netscape 6.1 presumably because the java.util.map class has capabilities that I'm using in my applet that isn't in other versions of java.util.map. Since I want to make my applet cross platform, is there any way to include java.util.map in my jar file so that people can use that version instead? Thanks.
    Denise

    Denise,
    I think that will break your license agreement with Sun, so you probably don't want to do that, right? ;)
    I think you should try to figure out what the exact cause of your problem is. Off hand, it almost sounds like your applet uses v1.3 api, but your still using the old <Applet> html tag and not the new <Object> tag. Is this right?
    -Ron

  • Java.util.zip.DataFormatException: unknown compression method

    I'm trying to decompress data from an oralce database into a file, but I'm getting error. Any assistance would be greatly appreciated .
    package com.citi.blob;
    import java.sql.*;
    import java.io.*;
    import java.util.zip.Inflater;
    public class PullBlob {
         public static void main(String[] args) {
              // DB Connection info
              String userName="user";
              String passWord="password";
              //Production Database
              String dataBase="ABCD";
              //Production URL
              String url = "jdbc:oracle:thin:@111.2222.333.444:8080:" + dataBase;
              System.out.println("args length is" + args.length);
              // Sort out args
              if(args.length<2) {
                   System.out.println("Usage: java PullBLOB product acctnum optional-out-file");
                   System.exit(1);
              String product = args[0];
              String acctnum = args[1];
              String fileName = null;
              if(args.length>=3) {
                   fileName = args[2];
              Connection con = null;
              try {
                   // Establish connection
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection(url, userName, passWord);
                   Statement stmt = con.createStatement();
                   // Sort out the output stream
                   boolean toFile=false;
                   PrintWriter fout = null;
                   if(fileName!=null) {
                        File file = new File(fileName);
                        FileOutputStream fos = new FileOutputStream(file);
                        fout = new PrintWriter(fos);
                        toFile = true;
                   String query = "SELECT stm_cmp_xml FROM pld_stm WHERE prd_nm = 'JACKS_BOX' and act_num='9988556622'";
                   System.out.println(query);
                   ResultSet rs = stmt.executeQuery(query);
    //                      System.out.println("Number of records fetchted " + rs.getFetchSize());
                   if(rs.next()) {
                        //Blob xml = rs.getBlob("inv_cmp_xml");
                        Blob xml = rs.getBlob("stm_cmp_xml");
                        InputStream in = xml.getBinaryStream();
                        ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
                        int data;
                        while ((data = in.read()) != -1) {
                             byteStream.write((byte)data);
                        byte[] compressedData = byteStream.toByteArray();
                        in.close();
                        Inflater decompressor = new Inflater();
                        decompressor.setInput(compressedData);
                        // Create an expandable byte array to hold the decompressed data
                        ByteArrayOutputStream bos = new ByteArrayOutputStream(compressedData.length);
                        // Decompress the data
                        //byte[] buf = new byte[TEMP_BUFFER_SIZE];
                        // use a 1 meg buffer for improved speed
                        byte [] buf = new byte[1048576];
                        while (!decompressor.finished()) {
                                  int count = decompressor.inflate(buf);
                                  bos.write(buf, 0, count);
                        buf=null;
                        bos.close();
                        //Get the decompressed data
                        byte[] decompressedData = bos.toByteArray();
                        String stmtXml = new String(decompressedData).trim();
                        if(toFile) {
                             fout.println(stmtXml);
                        else {
                             System.out.println(stmtXml);
                     else { // No result
                        System.out.println("Couldn't find stmt for " + acctnum );
                   if(fout!=null) fout.close();
              catch(Exception e) {
                   System.out.println(e.getMessage());
                   e.printStackTrace();
              finally {
                   try {
                        if(con!=null) con.close();
                   catch(Exception e) {
                        // Whatever
    }here is the output and error I receieve:
    args length is3
    SELECT stm_cmp_xml FROM pld_stm WHERE prd_nm = 'JACKS_BOX'  and act_num='9988556622'
    unknown compression method
    java.util.zip.DataFormatException: unknown compression method
         at java.util.zip.Inflater.inflateBytes(Native Method)
         at java.util.zip.Inflater.inflate(Unknown Source)
         at java.util.zip.Inflater.inflate(Unknown Source)
         at com.citi.blob.PullBlob.main(PullBlob.java:95)

    Take a look at class ZipFile.
    o Create one on your input.
    o Get an enumeration of the entries - the headers for your files within the zip file.
    o Ask for the input stream of the file you want.
    o Read the data - it is unzipped for you.

  • Problems with java.util.zip

    I've got a odd problem here. I'm not sure if this is the appropriate forum but I couldn't find anyplace more appropriate.
    So the problem is...
    I create my ZIP file and if I open it in WinZip, no problem. But if I open the ZIP file using the 'Compressed Folders' feature of Windows Explorer I don't see any of the files. As far as I can tell, if the files I ZIP up do not contain any path information then they open fine via 'Compressed Folders'.
    Is this a bug in java.util.zip? Or is the 'Compressed Folders' feature in Windows Explorer half-baked?
    And finally is there any way for me to not include the path information of the files added to ZIP?
    Thanks.

    Looce:
    I'm more than willing to modify things.
    But I'm still curious why WinZip and Windows are treating the ZIP files differently.
    Also, the only way I can figure to get the files into the ZIP without the path information being stored in the ZIP file is by copying the files to the directory containing my application jar file and then passing in the file name without the path being specified. That is the only way FileInputStream would be able to find the files without including path information. This seems like a lot of unnecessary overhead.
    Another oddity is that if I create the ZIP archive using the file path for the FileInputStream and view the ZIP file using a HEX editor the entire path is being stored including the drive letter. But if you view the file using WinZip the path field seems to be removing the drive letter and only displaying the path. On top of that, even though the drive letter is contained in the archive if you unzip the file using WinZip it ignores the drive letter and unzips the file to whatever drive the archive is located on. In the grand scheme of things it makes sense for WinZip to ignore the drive letter.
    Thanks for you help anyways.

  • URGENT HELP about java.util.zip.ZipException: invalid entry CRC

    I have a program (JAVA of course) packet on JAR with fat-jar eclipse plugin. This program work well in all my computers except two. On these two computers I receive a java.util.zip.ZipException: invalid entry CRC.
    Both computers have the last version of java, but one is Windows and the other is Linux.
    Any help to find the source of this problem??
    Thanks in advance.

    Sorry, I give poor information about this problem.
    This is the full error showed when I execute this command: java -jar app.jar
    Unable to load resource: java.util.zip.ZipException: invalid entry CRC (expected 0x358054d7 but got 0x7dc370ba)
    java.util.zip.ZipException: invalid entry CRC (expected 0x358054d7 but got 0x7dc370ba)
    at java.util.zip.ZipInputStream.read(Unknown Source)
    at java.util.jar.JarInputStream.read(Unknown Source)
    at java.io.FilterInputStream.read(Unknown Source)
    at com.simontuffs.onejar.JarClassLoader.copy(JarClassLoader.java:818)
    at com.simontuffs.onejar.JarClassLoader.loadBytes(JarClassLoader.java:383)
    at com.simontuffs.onejar.JarClassLoader.loadByteCode(JarClassLoader.java:371)
    at com.simontuffs.onejar.JarClassLoader.loadByteCode(JarClassLoader.java:362)
    at com.simontuffs.onejar.JarClassLoader.load(JarClassLoader.java:305)
    at com.simontuffs.onejar.JarClassLoader.load(JarClassLoader.java:224)
    at com.simontuffs.onejar.Boot.run(Boot.java:224)
    at com.simontuffs.onejar.Boot.main(Boot.java:89)
    Exception in thread "main" java.lang.ClassNotFoundException: com.intarex.wizard.IWizard
    at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:497)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.simontuffs.onejar.Boot.run(Boot.java:240)
    at com.simontuffs.onejar.Boot.main(Boot.java:89)
    app.jar is a JAR file created with fat-jar eclipse plugin, to make easier to generate a JAR file with all dependencies.
    I think that is not a code related problem, because this program is executed in several computers without errors.
    I trasport this JAR to the client computer via HTTP.
    I'm trying to find clues to find the origin of this problem.
    Thanks.

  • Java.util.zip.ZipException: Is a directory- weblogic exception comming

    I am getting following exception while deploying the web application in weblogic Enviornment, on Sun solaris 5.8, please help:
    <Jul 11, 2008 5:39:07 PM EDT> <Error> <J2EE> <BEA-160131> <Error deploying fotrd: with deployment error Could not load fotrd and nested error weblogic.management.DeploymentException: [HTTP:101062][ServletContext(id=175067,name=,context-path=/)] Error reading Web application "/export/enterprise-docs/fo2oli/citioliprodfix/po2trd/deploy/po2trd.ear/fotrd.war".
    java.util.zip.ZipException: Is a directory
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.><init>(ZipFile.java:111)
    at java.util.jar.JarFile.<init>(JarFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:65)
    at weblogic.servlet.internal.WebAppServletContext.getDescriptorLoader(WebAppServletContext.java:1443)
    at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:492)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:621)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:121)
    at weblogic.j2ee.Application.addComponent(Application.java:322)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:202)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:132)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
    at weblogic.management.configuration.WebServerMBean_Stub.addWebDeployment(WebServerMBean_Stub.java:2596)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:289)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
    at weblogic.Server.main(Server.java:32)

    Could it be that you are trying to install from an exploded version of your war files? It looks like WebLogic thinks it's a war file but it seems to be a directory... You might try to rename those directories to anything that's not .war and .ear.

Maybe you are looking for

  • Open ECC report in Crystal Reports

    Hi, Question, hope you have some info on this... I want to try & open a custom report which is built in an ECC system (report is currently run as a "Yxxx" transaction) in Crystal Reports. Purpose is to further edit and format the report using Crystal

  • How do I retrieve a hWnd required to draw an image created by an ActiveX object on a windows 7 64-bit system?

    I'm calling to the NaturalPoint Optitrack SDK using activex controls and am trying to pull tracking data from a trackIR 5.  I have connected to the camera and wanted to start by just viewing a captured frame.  The Optitrack COM provides a function to

  • System Copy and BW Indexes

    Our Basis Admin reports errors on the "P" indexes (on the "E" fact table) while doing a refresh of our sandbox sysem from Dev. It complains about the indexes being redundant, and it does not create them, even though they're necessary. Has anyone else

  • Implement the following scenario for credit memo

    Dear experts! Thank you for your attention! how to implement the following scenario for credit memo?????? 1.Credit memo requests are usually blocked for billing (that is, credit) upon creation until the employee responsible releases this block. 2.Wit

  • Unexpected error [0x8CFB0B0] while executing command 'Get-LinkedRoleGroupForLogonUser'

    Hi Experts.... I am facing a weired error when connecting to Exchange On-Premises... I have 2 virtual machines in Virtual-Box .On 1st machine I has installed Active Directory.. On 2nd machine I have to install Exchange Server.I have joined the second