发帖数: 1 | 1 found the following error in catalina log file:
SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.
addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wechatEE]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:724)
at org.apache.catali... 阅读全帖 |
|
c*****m 发帖数: 1160 | 2 最后还是用验证zip file的方式来做了。因为我所拿到的都是 zip file,如果最后部
分没有上传上来的话,unzip -v 会说:
unzip -v a1.zip
Archive: a1.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of a1.zip or
a1.zip.zip, and cannot find a1.zip.ZIP, period.
(Exit code = 9)
而用python的 zi... 阅读全帖 |
|
c*****m 发帖数: 1160 | 3 最后还是用验证zip file的方式来做了。因为我所拿到的都是 zip file,如果最后部
分没有上传上来的话,unzip -v 会说:
unzip -v a1.zip
Archive: a1.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of a1.zip or
a1.zip.zip, and cannot find a1.zip.ZIP, period.
(exit code=9)
而用python的 zipf... 阅读全帖 |
|
z****p 发帖数: 138 | 4 执行了一下命令:
jar cvfm myjar.jar mymanifest -C proxyserver/ .
java -jar myjar
出现一下错误:
Exception in thread "main" java.util.zip.ZipException: No such file or
directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:112)
at java.util.jar.JarFile.(JarFile.java:117)
at java.util.jar.JarFile.(JarFile.java:55)
mymanifest 是这样的
Manifest-Version: 1.0
Class-Path: /home/proxy/proxy/src
Main-Class: proxyserver.server.ProxyMain |
|
h*******1 发帖数: 5 | 5 有一批贷款的文件需要用email发送给lender。觉得不太放心直接放在附件里。我发现
Gmail不可以发送加密的zipfile。原因是Gamil无法用抗病毒软件来扫描邮件。
各位有什么方法发送敏感邮件的?
另外,我真不知道各位lender是如何保护客户的个人重要信息的。 |
|
g**********y 发帖数: 14569 | 6 I think you can change the jar file package, if you use ZipFile* (forget the
exact class). |
|
b***i 发帖数: 3043 | 7 网上有一个从本地用ZipFile读的,但是我要applet,就不知道怎么做了。
那个网页说用JarURLConnection,也用了,具体到了读入就读入了-1,大侠帮帮妈忙?
URL url0 = baseClass.class.getResource(jarFileName);
String ok = "jar:file:"+ url0.getPath()+"!/"+name; // name is file name
inside
URL url=new URL(ok);
JarURLConnection conn = (JarURLConnection)url.openConnection();
ZipEntry ze=(ZipEntry)conn.getJarEntry();
int size=(int)ze.getSize();
InputStream fis= conn.getInputStream();
BufferedInputStream bis=new BufferedInputStream(fis);
ZipInputStream zis=new ZipInpu |
|
b***i 发帖数: 3043 | 8 1
protected AudioDevice instantiate(ClassLoader loader, String name)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
{
AudioDevice dev = null;
Class cls = null;// 我改成Class extends AudioDevice>对吗?
if (loader==null){
cls = Class.forName(name);
}else{
cls = loader.loadClass(name);
}
Object o = cls.newInstance();
dev = (AudioDevice)o;
return dev;
}
2
ZipFile zf = conn.getJarFi... 阅读全帖 |
|