Fork me on GitHub

Add an aplication to my module  Bottom

  • Hi everybody!

    Well, i will wish add the application U-Upload Cart to my module. This application is for upload big files without timeout with the technology Java. In the documentation of this application, say that it is neccesary (only), add the follow line:

    Code

    <sc ript lan guage="javascript" s rc="uuploadcart.js">

    When i add this line to my template file, the Java Console appear with errors, but if i use a HTML file (without Zikula), the application run successfully.

    I try it with differents lines in my template:

    Code

    <!--[pnpa geaddvar name="javascript" value="modules/MyModule/pnjavascript/uuploadcart.js"]-->

    Code

    <!--[include file="test.html"]-->
    (test . HTML contain a line with the call to the JS file.)

    Write the call to the JS file directly in the template of my module...

    But no results...

    Could you help me with this?

    Thanks.
  • What are the errors that are displayed?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • The errors are the follows (all in the Java console):

    Quote


    cargar: clase unlimited.ftp.UUploadCart.class no encontrada.
    java.lang.ClassNotFoundException: unlimited.ftp.UUploadCart.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://localhost/test122/unlimited/ftp/UUploadCart/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 9 more
    Excepción: java.lang.ClassNotFoundException: unlimited.ftp.UUploadCart.class
    cargar: clase unlimited.ftp.UUploadCart.class no encontrada.
    java.lang.ClassNotFoundException: unlimited.ftp.UUploadCart.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://localhost/test122/unlimited/ftp/UUploadCart/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 9 more
    Excepción: java.lang.ClassNotFoundException: unlimited.ftp.UUploadCart.class


    This message appear in all scenarios that i try it.

    Thanks.
  • That seems to be java exception that your class can't be found. Make sure you have the Jar loaded correctly and your classpath set accordingly. IMHO this really has nothing to do with Zikula.

    Greetings
    Robert
  • The file JS and the JAR file are in the same directory. So, i do not know because is not working, when the file HTML is working fine.

    Thanks.

This list is based on users active over the last 60 minutes.