Menu

using jml in website

Help
ivi
2008-03-11
2013-04-29
  • ivi

    ivi - 2008-03-11

    Hello

    Im trying to get JML working on a web interface. To keep permanent connection i instantiated class BasicMessenger (just to test the login) in a SessionBean, however it never gets connected, nor do i receive error messages from the server (Glassfish)log. I already tested BasicMessenger as a normal Java Application : everything worked well.
    Can anyone help me please?

    Ivi

     
    • Dušan Živkov

      Dušan Živkov - 2008-09-18

      I have same problme when i try to start my application o tomcat server it just stops on login methode no error no nothing. Did anybody found couse for this behaviore?

       
    • mehmet

      mehmet - 2008-09-21

      you may have an exception, to see the log in console, check the properties of tomacat.

      if the project work well as a java application and doesn't start as a tomcat project, that mind that you forgot to copy the jar file (cindy, commons-logging and junit) in your project/web-inf/lib and in the jre directory lib/ext.

       
    • Nikolaos Ftylitakis

      I suppose you run the web application as Applet isn't it?

      I had the same problem and is caused because the applets has security constraints. An applet can't make connections with other computers other than the computer from which it was downloaded.
      The program was working when you tested it at your computer beacuse the Applet viewer created by your IDE program (the program from which you compiled it, in my case Eclipse) takes out these constraints.

      Any way, this can be solved is you make the applet signed. I created a certificate (in my case from linux) which is patched afterwards to the jar file you create. When you do that, at the initialization of the applet the user is asked accept or decline you as reliable in order to take away the constraints.

      I hope i helped...but in any case for more detailed info you can google from "signed applet".

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.