Thread: [javaCompiler-users] cannot compile specific jars
Status: Beta
Brought to you by:
soapy
From: praveen b. <s_p...@ya...> - 2006-10-31 10:25:32
|
Hi, I am trying to create a swing application that uses commons-logging.jar. This is failing and when I tried to create a jar object for this commons-logging.jar I am getting the following error. I am new to GCJ and JavaCompiler and greatly appreciate your help in this regard. creating Copy of commons-logging-win.jar.o - Java 1.5 preprocessing: Copy of commons-logging.jar [RetroWeaver] Processing 17 classe(s) Exception in thread "main" com.rc.retroweaver.RetroWeaverException: Weaving failed at 0x5dd538(Unknown Source) at 0x47104e(Unknown Source) at 0x475aae(Unknown Source) at 0x475ad5(Unknown Source) at 0x475c2b(Unknown Source) at 0x475c5b(Unknown Source) at 0x4158b1(Unknown Source) at 0x41986b(Unknown Source) at 0x66692c(Unknown Source) at 0x543337(Unknown Source) at 0x560ae0(Unknown Source) at 0x46fa00(Unknown Source) at 0x46fb62(Unknown Source) at 0x46fb97(Unknown Source) at 0x401308(Unknown Source) at 0x401233(Unknown Source) at 0x401284(Unknown Source) at 0x7c816fd3(Unknown Source) Caused by: java.util.zip.ZipException: compressed size was 1280, but I expected 2816 at 0x5dd538(Unknown Source) at 0x47104e(Unknown Source) at 0x475aae(Unknown Source) at 0x476354(Unknown Source) at 0x4a1884(Unknown Source) at 0x512364(Unknown Source) at 0x512dad(Unknown Source) at 0x512fc0(Unknown Source) at 0x5198c4(Unknown Source) at 0x411979(Unknown Source) at 0x4197b4(Unknown Source) ...10 more failed... ____________________________________________________________________________________ Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates (http://voice.yahoo.com) |
From: Marco T. <mt...@gm...> - 2006-10-31 11:27:56
|
praveen bharath wrote: > Hi, > > I am trying to create a swing application that uses > commons-logging.jar. This is failing and when I tried > to create a jar object for this commons-logging.jar I > am getting the following error. I am new to GCJ and > JavaCompiler and greatly appreciate your help in this > regard. > > creating Copy of commons-logging-win.jar.o > - Java 1.5 preprocessing: Copy of commons-logging.jar > [RetroWeaver] Processing 17 classe(s) > Exception in thread "main" > com.rc.retroweaver.RetroWeaverException: Weaving > failed > at 0x5dd538(Unknown Source) > at 0x47104e(Unknown Source) > at 0x475aae(Unknown Source) > at 0x475ad5(Unknown Source) > at 0x475c2b(Unknown Source) > at 0x475c5b(Unknown Source) > at 0x4158b1(Unknown Source) > at 0x41986b(Unknown Source) > at 0x66692c(Unknown Source) > at 0x543337(Unknown Source) > at 0x560ae0(Unknown Source) > at 0x46fa00(Unknown Source) > at 0x46fb62(Unknown Source) > at 0x46fb97(Unknown Source) > at 0x401308(Unknown Source) > at 0x401233(Unknown Source) > at 0x401284(Unknown Source) > at 0x7c816fd3(Unknown Source) > Caused by: java.util.zip.ZipException: compressed > size was 1280, but I expected 2816 > at 0x5dd538(Unknown Source) > at 0x47104e(Unknown Source) > at 0x475aae(Unknown Source) > at 0x476354(Unknown Source) > at 0x4a1884(Unknown Source) > at 0x512364(Unknown Source) > at 0x512dad(Unknown Source) > at 0x512fc0(Unknown Source) > at 0x5198c4(Unknown Source) > at 0x411979(Unknown Source) > at 0x4197b4(Unknown Source) > ...10 more > > failed... Ok, multiple things: - Which version of JavaCompiler are you using? Please update... - I don't think you have to preprocess commons-logging.jar. - Swing will most probably not work - logging is already in GCJ. I don't know if it is in a javaCompiler release or if it was imported later. Just mentioning it because you might run into "multiple definitions of ..." problems. Marco |
From: praveen b. <s_p...@ya...> - 2006-11-02 09:23:43
|
Hi Marco, I am using javaCompiler V0.8. I am trying to create a small application that uses webservices deployed on weblogic. As you said I am able to compile my application without having the commons-logging-win.jar in the jars list. But after some debugging I am able to trace the exact problem: To reproduce the issue, I have used the SwtMinimal.java sample itself. What I have done is, I have added the webservices related code in the SwtMinimal.java class on the button click. This is 3 lines code which uses a webservices stub generated by weblogic clientgen tool. To run this sample we need to have webservices.jar and webserviceclient.jar of weblogic in the classpath. from the command prompt I am able to run this SwtMinimal class with these two jars in the classpath. In the javaCompiler, I have added webservices.jar in the jars list and the tool have succesfully generated the .exe. When running the exe, I was getting Class not found exceptions, which I have eliminated by keeping the webserviceclient.jar in the classpath. Now, though there are no exceptions, I am getting a run time error saying that: weblogic.webservice.client.SSLConfigurationException: No SSLAdapter class could be found. The likely cause of this is an incomplete web service client libarary . If no SSL implementation is available, the client should use NullSSLAdapter at java.lang.VMThrowable.fillInStackTrace(SwtMinimal-win.exe) at java.lang.Throwable.<init>(SwtMinimal-win.exe) at java.lang.Exception.<init>(SwtMinimal-win.exe) Can you help me and let me know if this kind of programs which involve webservices stub can be made into EXEs using javaCompiler? Regards, Praveen --- Marco Trudel <mt...@gm...> wrote: > praveen bharath wrote: > > Hi, > > > > I am trying to create a swing application that > uses > > commons-logging.jar. This is failing and when I > tried > > to create a jar object for this > commons-logging.jar I > > am getting the following error. I am new to GCJ > and > > JavaCompiler and greatly appreciate your help in > this > > regard. > > > > creating Copy of commons-logging-win.jar.o > > - Java 1.5 preprocessing: Copy of > commons-logging.jar > > [RetroWeaver] Processing 17 classe(s) > > Exception in thread "main" > > com.rc.retroweaver.RetroWeaverException: Weaving > > failed > > at 0x5dd538(Unknown Source) > > at 0x47104e(Unknown Source) > > at 0x475aae(Unknown Source) > > at 0x475ad5(Unknown Source) > > at 0x475c2b(Unknown Source) > > at 0x475c5b(Unknown Source) > > at 0x4158b1(Unknown Source) > > at 0x41986b(Unknown Source) > > at 0x66692c(Unknown Source) > > at 0x543337(Unknown Source) > > at 0x560ae0(Unknown Source) > > at 0x46fa00(Unknown Source) > > at 0x46fb62(Unknown Source) > > at 0x46fb97(Unknown Source) > > at 0x401308(Unknown Source) > > at 0x401233(Unknown Source) > > at 0x401284(Unknown Source) > > at 0x7c816fd3(Unknown Source) > > Caused by: java.util.zip.ZipException: compressed > > size was 1280, but I expected 2816 > > at 0x5dd538(Unknown Source) > > at 0x47104e(Unknown Source) > > at 0x475aae(Unknown Source) > > at 0x476354(Unknown Source) > > at 0x4a1884(Unknown Source) > > at 0x512364(Unknown Source) > > at 0x512dad(Unknown Source) > > at 0x512fc0(Unknown Source) > > at 0x5198c4(Unknown Source) > > at 0x411979(Unknown Source) > > at 0x4197b4(Unknown Source) > > ...10 more > > > > failed... > > Ok, multiple things: > - Which version of JavaCompiler are you using? > Please update... > - I don't think you have to preprocess > commons-logging.jar. > - Swing will most probably not work > - logging is already in GCJ. I don't know if it is > in a javaCompiler > release or if it was imported later. Just mentioning > it because you > might run into "multiple definitions of ..." > problems. > > > Marco > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > ____________________________________________________________________________________ Everyone is raving about the all-new Yahoo! Mail (http://advision.webevents.yahoo.com/mailbeta/) |
From: Marco T. <mt...@gm...> - 2006-11-02 14:39:37
|
praveen bharath wrote: > Hi Marco, > > I am using javaCompiler V0.8. I am trying to create a > small application that uses webservices deployed on > weblogic. As you said I am able to compile my > application without having the commons-logging-win.jar > in the jars list. But after some debugging I am able > to trace the exact problem: > > To reproduce the issue, I have used the > SwtMinimal.java sample itself. What I have done is, I > have added the webservices related code in the > SwtMinimal.java class on the button click. This is 3 > lines code which uses a webservices stub generated by > weblogic clientgen tool. Why do you hide these 3 lines from us? > To run this sample we need to have webservices.jar and > webserviceclient.jar of weblogic in the classpath. > from the command prompt I am able to run this > SwtMinimal class with these two jars in the classpath. I assume you talking about using a Sun JRE. > In the javaCompiler, I have added webservices.jar in > the jars list and the tool have succesfully generated > the .exe. When running the exe, I was getting Class > not found exceptions, which I have eliminated by > keeping the webserviceclient.jar in the classpath. Why didn't you compile it into the executable? > Now, though there are no exceptions, I am getting a > run time error saying that: > > weblogic.webservice.client.SSLConfigurationException: > No SSLAdapter class could > be found. The likely cause of this is an incomplete > web service client libarary > . If no SSL implementation is available, the client > should use NullSSLAdapter > at > java.lang.VMThrowable.fillInStackTrace(SwtMinimal-win.exe) > at java.lang.Throwable.<init>(SwtMinimal-win.exe) > at java.lang.Exception.<init>(SwtMinimal-win.exe) > > Can you help me and let me know if this kind of > programs which involve webservices stub can be made > into EXEs using javaCompiler? Well, there was a lot of progress in the cryption part lately. If you send me the 2 jars and java source file, I can see if it will work now. If not, you have to fix it, find someone to fix it for you or pay me to fix it... Marco |