@zumiani said:
Hello peppermath,
load a background image with desired dimensions.
FANTASTIC!!!!!!
Grazie!!!!
@zumiani said:
Hello peppermath,
load a background image with desired dimensions.
FANTASTIC!!!!!!
Grazie!!!!
how can i enlarge the the box of "Graphical View editor"?: i need to have a much more big area where to insert a lot of components.
Is possible to do this? Are there solutions?
Thanks
how can i enlarge the the box of "Graphical View editor"?: i need to have a much more big area where to insert a lot of components.
Is possible to do this? Are there solutions?
Thanks
Is for a long time that i don't use mango installed on my linux machine and i have forget the username and password to login: how do you to reset username and password without loose the data in database??
I found this post
http://mango.serotoninsoftware.com/forum/posts/list/32.page#101
but he does nott resolve my problems
Can you help me??
Thank
Is for a long time that i don't use mango installed on my linux machine and i have forget the username and password to login: how do you to reset username and password without loose the data in database??
I found this post
http://mango.serotoninsoftware.com/forum/posts/list/32.page#101
but he does nott resolve my problems
Can you help me??
Thank
Hello everyone,
after some testing and considering that I'm new with java
to solve my problem I have proceeded as follows:
MANGO->proxy->agent
a) I created a html control with a button that makes a local call to a proxy java (proxyProcess) by ajax
<script language="javascript">
<!--
var myRequest = null;
function CreateXmlHttpReq( handler)
{
alert("create XmllHttpReq");
var xmlhttp = null;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = handler;
return xmlhttp;
}
function myHandler()
{
if (myRequest.readyState == 4 && myRequest.status == 200)
{
alert(myRequest.responseText);
}
}
function sendRequest( operation)
{
var path = '?process=snmpd&command=' + operation;
var urlProxy = 'http://xxx.xxx.xxx.xxx:8080/proxyPROCESS' + path;
alert("sendRequest to proxy \n" + urlProxy);
try
{
myRequest = CreateXmlHttpReq(myHandler);
myRequest.open( 'GET', urlProxy, true);
myRequest.send( null);
}
catch(e)
{
alert(e.message);
}
}
-->
</script>
<input type="button" value="start " onclick="sendRequest('start')" />
b) I created a servlet (positioned between the servlet Mango) proxyProcess.class that received the request makes a remote call (http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process = "+ param1 + "& command =" + param2) to the server where I want to execute the command
public class proxyPROCESS extends HttpServlet
{
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
try
{
String param1 = request.getParameter("process");
String param2 = request.getParameter("command");
URL url = new URL("http://yyy.yyy.yyy.yyy/provaXMango/PROCESSI/processCommands.php?process=" + param1 + "&command=" + param2);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
int code = conn.getResponseCode();
//conn.disconnect();
}
catch(MalformedURLException ex)
{
ex.printStackTrace();
}
catch(IOException ioex)
{
ioex.printStackTrace();
}
}
}
c) I created an php agent on the remote server to run command
<?php
$availableProcess = array();
getProcess( $availableProcess);
$qs = $_SERVER['QUERY_STRING'];
$process = $_GET['process'];
$command = $_GET['command'];
//comando to execute
$completeCommand = "sudo /etc/init.d/" . $process . " " . $command;
$tmp = exec( $completeCommand, $outputs, $ret_var);
?>
To execute commands with www user with sudo, you need to enable the www user to run the desired command in sudoers, for example
apache yyy.yyy.yyy.yyy=NOPASSWD: /etc/init.d/snmpd
Everything works correctly!
Probably this is not the optimal solution, but it works!
Ciao
I found the problem!
Excuse me, but it is my error: i'm new with java!
I have executed the command
java -version
and i have noticed that the version was not the jre1.6.0_17 but jre1.6.0-openjdk: this because when i installed all java world I didn't set the JAVA_HOME variable and it remained the configuration of java of centos distribution (i don't know well the mechanisms of management of Centos related to java ,openJDK).
However, now I have setted JAVA_HOME=/usr/java/latest/ in the script to start tomcat and all work fine!!!
Thanks again, your advices have been very precious!!!
Ciao
peppemath
I launched the test
start test .....
...... stop test
there aren't script engines !!!! :(
How must it do?
ciao
I tried to install the old versions of "Java Runtime Environment":
jre-6u10-xxxxx
jre-6u14-xxxxx
jre-6u17-xxxxx
jre-6u18-xxxxx
but the error continues to exist.
The error, could be caused by tomcat?
What could be the best configuration?
Ciao
when I installed mango i used the mango-1.8.0.tar.gz packet
Centos release 5.3 (final)
java version 1.6.0