farooq kadri

Greenhorn
+ Follow
since Jun 25, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by farooq kadri

I read the manual but could not make much out of it. I tried the below:

wget --save-cookies cookies.txt \
--post-data VAR= 'https://siteuptime.com/api/rest/?method=siteuptime.auth&Email=email.com&Password=passwd'\
http://siteuptime.com

#wget --load-cookies cookies.txt \
# --p https://siteuptime.com/api/rest/?method=siteuptime.disablemonitor&AuthKey=$VAR&MonitorId=9294


But it dint seem to work. I am trying to post a command in the URL in combination with the WGET command. The command would disable/enable the monitors.

The API documentation for the command that I am trying to use is at : http://siteuptime.com/api.php
14 years ago
Hi,

I have a website that I need to go to often and disable a monitor. To disable I need to login to the website-> click on monitor -> then uncheck a box.

I am told that I can do this through a scipt using the WGET command. I got the parameterized query and then tried to execute it through a *.sh script.

The script generates a php file in the location from where it is executed. When I go to the site and check the monitor is not disabled.

Could someone please advise on this. Thanks
14 years ago
Hi Kees,

Thanks for the info. Will need to look into it. Appreciate your help.
14 years ago
Hi,

I checked Java-Monitor before. However it does not give me the functionality of monitoring multiple JBosses together. Also I guess it does not have reporting features. I cant go and check what the stats were on the server yesterday.
14 years ago
Thanks. It looks good. Will download it and check it out.
14 years ago
Hi,

Am looking out for some kind of application monitoring software especially for Jboss.

Something that can monitor multiple jboss instances.

Not sure if this is the right forum but this was the closet topic.

Something opensource and customizable would be great help. Would appreciate any opinions/suggestions.

14 years ago
Thank you very much for that pointer and the link. I will try it with some changes and let you know if that works.

Appreciate all your help.
14 years ago
I am sorry. I am trying on the HSQL database in JBoss.

What changes would I need to make to make it work?

Please let me know if you need any other information.

Regards,
Farooq Kadri
14 years ago
Hi All

I am trying to run the Duke's Bank application In JBoss 4.0.2.

I am trying to run the database scripts through ant and am getting the following error message :

=======================================================================================

[java] SQL Error at line 321: java.sql.SQLException: Unexpected token: CONSTRAINT in statement [
[java]
[java]
[java] CREATE TABLE ACCOUNT (
[java] account_id VARCHAR(8) CONSTRAINT]

=======================================================================================


Would really appreciate if someone could point out why this issue is happening. Below is the extract from the script that it is trying to run :

// Create tables for Duke's Bank, the tutorial's online banking application.
// Also seed the NEXT_ID table with initial values.


DROP TABLE customer_account_xref if exists;
DROP TABLE tx if exists;
DROP TABLE customer if exists;
DROP TABLE account if exists;
DROP TABLE next_tx_id if exists;
DROP TABLE next_customer_id if exists;
DROP TABLE next_account_id if exists;


CREATE TABLE ACCOUNT (
account_id VARCHAR(8) CONSTRAINT pk_account PRIMARY KEY,
type VARCHAR(24),
description VARCHAR(30),
balance NUMERIC(10,2),
credit_line NUMERIC(10,2),
begin_balance NUMERIC(10,2),
begin_balance_time_stamp TIMESTAMP);

CREATE TABLE CUSTOMER (
customer_id VARCHAR(8) CONSTRAINT pk_customer PRIMARY KEY,
last_name VARCHAR(30),
first_name VARCHAR(30),
middle_initial VARCHAR(1),
street VARCHAR(40),
city VARCHAR(40),
state VARCHAR(2),
zip VARCHAR(5),
phone VARCHAR(16),
email VARCHAR(30));


Would greatly appreciate any help on this.
14 years ago
Hi,

I am facing the same issue that you have mentioned :

[java] SQL Error at line 321: java.sql.SQLException: Unexpected token: CONSTRAINT in statement [
[java]
[java]
[java] CREATE TABLE ACCOUNT (
[java] account_id VARCHAR(8) CONSTRAINT]

Would really appreciate if someone could point out why this issue is happening. Below si the extract from the script that it is trying to run :

// Create tables for Duke's Bank, the tutorial's online banking application.
// Also seed the NEXT_ID table with initial values.


DROP TABLE customer_account_xref if exists;
DROP TABLE tx if exists;
DROP TABLE customer if exists;
DROP TABLE account if exists;
DROP TABLE next_tx_id if exists;
DROP TABLE next_customer_id if exists;
DROP TABLE next_account_id if exists;


CREATE TABLE ACCOUNT (
account_id VARCHAR(8) CONSTRAINT pk_account PRIMARY KEY,
type VARCHAR(24),
description VARCHAR(30),
balance NUMERIC(10,2),
credit_line NUMERIC(10,2),
begin_balance NUMERIC(10,2),
begin_balance_time_stamp TIMESTAMP);

CREATE TABLE CUSTOMER (
customer_id VARCHAR(8) CONSTRAINT pk_customer PRIMARY KEY,
last_name VARCHAR(30),
first_name VARCHAR(30),
middle_initial VARCHAR(1),
street VARCHAR(40),
city VARCHAR(40),
state VARCHAR(2),
zip VARCHAR(5),
phone VARCHAR(16),
email VARCHAR(30));
14 years ago
Thank you very much. That worked!!!
14 years ago
Hi All,

Am kinda new to learning JBoss. I am following the start guide for JBoss 4.0. URL : http://www.jboss.org/jbossas/docs/

I am facing issues in deploying the Duke's Bank application. I first extracted the j2ee-1_4-doc-tutorial_7.zip
Then extracted jbossj2ee-src.zip in the folder j2eetutorial14 as per page 21 of the guide.

I made the changes in the jboss-build.properties file,eg: D:\Jboss\jboss-4.0.0 (Thats is where my JBoss is installed)

Ran ant -f jboss-build.xml compile to compile and below is the error message that I am getting:

================================================================


D:\Jboss\jboss-4.0.0\j2eetutorial14\examples\bank>ant -f jboss-build.xml compile
Buildfile: jboss-build.xml

prepare:

compile:
[javac] Compiling 60 source files to D:\Jboss\jboss-4.0.0\j2eetutorial14\examples\bank\build

BUILD FAILED
D:\Jboss\jboss-4.0.0\j2eetutorial14\examples\bank\jboss-build.xml:55: D:\Jboss\jboss-4.0.0\j2eetutorial14\examples\bank\
Jbossjboss-4.0.0\client not found.

Total time: 1 second
D:\Jboss\jboss-4.0.0\j2eetutorial14\examples\bank>

================================================================

According to what I understand the issue is in the jboss-build.xml just above line 55. Below is the extract from the jboss-build.xml file

=================================================================


<!-- ================================================================ -->
<!-- Compiles the source code -->
<!-- ================================================================ -->
<target name="compile" depends="prepare">
<javac destdir="${build.dir}" classpathref="build.classpath"
debug="on">
<src path="${src.dir}"/>
</javac>
</target>


===============================================================

I am not able to understand where I am going wrong. Is it possible that the jbossj2ee-src.zip is not right.

Would greatly appreciate any help on this. Thanks
14 years ago