-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i'm trying to upload a file with Weblogic9.2 server on eclipse framework but i got this error.
ec 15, 2010 4:21:07 PM org.zkoss.zk.au.http.AuUploader handleError:157
SEVERE: Failed to upload
>>java.lang.NoSuchMethodError: setProgressListener
>> at org.zkoss.zk.au.http.AuUploader.parseRequest(AuUploader.java:279)
>> at org.zkoss.zk.au.http.AuUploader.process(AuUploader.java:102)
>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:362)
>> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:379)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>> at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
>> at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
there is my zul file code and java file code at below please help me.
index.zul
<?page id="samplezul" title="Example"?>
<window use="com.deneme.beans.fileupload" id="fupl"
xmlns:a="http://www.zkoss.org/2005/zk/annotation" width="630px"
border="none" style="margin: 15px;">
<grid>
<rows>
<row>
Kullanıcı Adı:
<image id="img" />
</row>
<row spans="2" align="center">
<button id="loginBT" label="Giriş" onClick="fupl.DosyaYukle()"/>
</row>
</rows>
</grid>
</window>
fileupload.java
package com.deneme.beans;
import org.zkoss.zul.Fileupload;
import org.zkoss.zul.Image;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Window;
public class fileupload extends Window{
Image image=null;
public void onCreate() {
image=(Image) this.getFellow("img");
image.setWidth("60px");
image.setHeight("80px");
}
public void DosyaYukle() throws Exception {
Object media = Fileupload.get();
if (media instanceof org.zkoss.image.Image)
{
org.zkoss.image.Image img = (org.zkoss.image.Image) media;
image.setContent(img);
}
else
if (media != null)
Messagebox.show("Not an image: "+media, "Error",Messagebox.OK, Messagebox.ERROR);
}
}
these codes are running on apache tomcat server but when i want to run in weblogic server i got error at the top. please help.
Have you deployed onto this Weblogic instance before? This looks like there might be an older version of the ZK jar files in the app server's classpath that are being found as opposed to the ones that you're compiling against. Have you used 3.6.x in the past and are now using 5.x?
Yes i used it as a project and deployed to a Weblogic server and it is running on. now i have zk 5.x jars and running it these jars but have error. i deleted all new jars and copy old jars but got error. I have to solve this but how?
I solved problem. I was running eclipse on Workshop Eclipse and now i installed Workshop Eclipse new version and add WebLogic Server as a Server on it. And trying now it is running. Thank you for your reply it was the route for me to solve problem.
Asked: 2010-12-15 08:25:24 +0800
Seen: 448 times
Last updated: Dec 16 '10