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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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?
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.
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".