Houssam Haitof

Greenhorn
+ Follow
since Oct 04, 2001
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 Houssam Haitof

Hi all,

is there any function in jaxb (or some other utility) that formats the output xml file? Thanks in advance!
Hi all, do you know of any way to export a system environement variable from within java? Something else than the Runtime.getRuntime.exec("SET var=value");
Thanks in advance
19 years ago
JK2
Hi all, I'm trying to use the jk2 connector but I'm having a lot of problems, I refered to many tutorials, the last one is http://www.reliablepenguin.com/clients/misc/tomcat/ where I followed everything step by step, how ever I'm having this error when I try to load a jsp page: 503 Service Temporarily Unavailable.

here is what apache error log shows:

[Tue Jun 01 01:31:50 2004] [error] shm.create(): error creating shm 70014 End of file found
[Tue Jun 01 01:31:50 2004] [error] shm.create(): error creating shm /opt/jakarta-tomcat-5.0.24/logs/jk2.shm
[Tue Jun 01 01:31:51 2004] [notice] Apache/2.0.47 (Fedora) configured -- resuming normal operations
[Tue Jun 01 01:31:53 2004] [error] channelUn.connect() connect failed 2 No such file or directory
[Tue Jun 01 01:31:53 2004] [error] ajp13.connect() failed ajp13:/opt/jakarta-tomcat-5.0.24/work/jk2.socket
[Tue Jun 01 01:31:53 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory
[Tue Jun 01 01:31:53 2004] [error] ajp13.service() Error forwarding ajp13:/opt/jakarta-tomcat-5.0.24/work/jk2.socket 1 1
[Tue Jun 01 01:31:53 2004] [error] lb.service() worker failed 120000 for ajp13:/opt/jakarta-tomcat-5.0.24/work/jk2.socket
[Tue Jun 01 01:31:53 2004] [error] lb_worker.service() all workers in error or disabled state
[Tue Jun 01 01:31:53 2004] [error] mod_jk2.handler() Error connecting to tomcat 120000, status 503

I hope you'll help. Thanks in advance!
19 years ago
Hi,
I want to connect to a web site made with JSP's as to retrieve some news, however I need to login first (no https, it's a simple post to a jsp). I coded a proxy so I can monitor what is exchanged exactly between my browser and the server as to incorporate this information in the sockets to connect from my application.
Here's what my browser sends:
-- Input Begin --
POST http://www.meditel.ma/clb/firstIdent.jsp HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Referer: http://www.meditel.ma/clb/index.jsp?auth=2
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Host: www.meditel.ma
Content-Length: 43
Pragma: no-cache
Cookie: JSESSIONID=www.meditel.ma-18066%253A40660032%253Aef736cc39e2678b

-- Input End --
And this is what I ger as reply:
-- Reply Begin --
HTTP/1.1 302 Moved Temporarily
Server: "Meditel Server Web"
Date: Sat, 27 Mar 2004 22:30:26 GMT
Content-length: 2
Content-type: text/html;charset=ISO-8859-1
Set-cookie: JSESSIONID=www.meditel.ma-18084%253A4066005e%253A30c9a3b4932837de;path=/
Location: /err.jsp?t=1java.lang.NullPointerException
Connection: close

-- Reply End --
I tried this with another site that uses ASP's and Im not getting anything as reply also.
Did I miss anything?
I'll really apreciate your help. Thanks in advance.
You're welcome =)
Just msg me from this forum as it will redirect it to the email adress that I'll most use.
P.S.: I'm still a newbie
21 years ago
Hi, use this table model class instead of yours (of course you can add to it anything that you need):

when you have a new result create a new model:
MyTableModel model = new MyTableModel(MyDataArray, MyColumnNames);
then set your table model:
myTable.setModel(model);
and the column names should change along with the data.
N.B.: you should add your table to a scrollpane only once.
[ June 13, 2002: Message edited by: Michael Ernest ]
21 years ago
Hi, to have the column names shown, you should add your table to a scrollpane.
example of code lines to add:
JScrollPane jScrollPane = new JScrollPane();
.
.
.
jScrollPane.getViewport().add(MyTable, null);
21 years ago
How can I display an image alone in the screen without the title bare, only the image. I want it to be displayed while the main application is loading like in the professional applications ;). Thank you
21 years ago
Thank you for your interest, yes the html file and the class file are in the same directory. I load my file using File/Open or just by double clicking on it and it still does not work :/
22 years ago
Hello,
I made a simple applet and a simple html file to run this applet in a browser. But when I load the html file into a web browser it told me that MyApplet could not be found. I tried "appletviewer MyFile.html" in the shell and it worked. Does any body have an idea about this problem? My CLASSPATH contains only "."
Thank you in advance.
22 years ago
I have two databases that I want to be synchronized. Whenever the 1st is changed The 2nd needs to be updated. Is there any mean to verify that the 1st db changed without cheking every field? Thank you