Ariffin Ahmad

Ranch Hand
+ Follow
since Aug 16, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ariffin Ahmad

i got below message when starting my Tomcat 6.0.14.
for information, i've chance the connector configuration from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol.

will anyone assist me on suggestion what i have been missing in my Tomcat 6.0.14 configuration/installation?...


16 years ago
thanks for the link.
i will look into it.

by the way.
my understanding is, HTTP 1.1 is a persistent connection by default.
is there any way for me to get the main input/output stream from my servlet for that socket HTTP 1.1 connection?
HttpServletRequest seems to only return input stream for request on that servlet, ie: i can only read for defined content-length and after that read() will return -1, even though HTTP 1.1 connection still there.

cheers....
16 years ago
i realized that it is contrary to the HTTP style.
but, i need to do it that way since i want to eliminate the headache of having to deal with firewall rules and what so ever.

custom socket programming not really practical, since i still need the tomcat to do portal hosting service for me.

lets me describe more about my situation:
i have a machine at home that will keep sending events to portal. at the
same time, the portal may also send some instruction to the machine.
this machine will be at lots of home, and each one of them will keep
updating(through events) the portal on whatever activities going on there.

the machine owner then, can access the portal and then view the updates
sent by his machine. then he may send some instruction to his machine,
through the portal.

i believe it is possible to assign a very large number to the content-length, but the communication between the machine and the portal will still meet the limit of the content-length at some point. and when that happen, nothing can be read on the servlet anymore.
16 years ago
found out the reason.

seems like i need to set Content-Length in HTTP header.
but the problem that i have now is I'm intended to have a persistent socket connection, from my C application to this servlet.
hence, the content length is unknown, or should i say, unlimited.

any suggestion to my problem?...
16 years ago
hi there.....

have this weird problem that haunting me for sometime now.
the situation:

i'm using servlet tunneling technique to communicate between my C
application and my Java based web application.

as shown in code below, i'm pooling the blocking read of InputStream in
order to get incoming data from my remote C application.

while it working fine on Tomcat version 5.0.30 and earlier, the method
doesnt seems to work on Tomcat version 5.5 and later as the read
function doesnt block anymore and always return '-1' immediately
(similar situation as when connection get diconnected/timeout).

the code:


any suggestion?...
[ June 25, 2008: Message edited by: Ariffin Ahmad ]
16 years ago
i customized my own linux file system and using kernel 2.6.7.
i have j2re1.4.2_05 installed.
the problem is, everytime i try to run any java application,
i will get 'Killed' message and the application got terminated.
i've tried run '/j2re1.4.2_05/bin/java' alone and it show all the java option.
but, i still got 'Killed' message at the end.

but, when if i use the same file system, with different kernel, 2.4.20, the java application seems to be working fine..
i dont think kernel 2.6.7 doesnt support jre, since my desktop are running FC3 Test 1, which using kernel 2.6.7.
and i dont think i miss any required linux libraries, since i use the same file system for both kernel.
i do suspect it is something to do with kernel 2.6.7 pre-compiled configuration .

any idea?....
20 years ago
is there any CSTA API for Java implementation out there.

i heard JTAPI do implement CSTA, but im not sure..
after all, i can only download the interface from java web site, not the implementation.

another option that i have is to download the asn.1 code for CSTA and then compile it to Java code. but, i rather using the proven CSTA API than try to build a new API.

cheers.....
20 years ago
is there any CSTA API for Java implementation out there.

i heard JTAPI do implement CSTA, but im not sure..
after all, i can only download the interface from java web site, not the implementation.

another option that i have is to download the asn.1 code for CSTA and then compile it to Java code. but, i rather using the proven CSTA API than try to build a new API.

cheers.....
20 years ago
thanks for the reply...
i pretty like the first idea...

actually, both of the server not located physically on the same location.
the situation is like this.
i will have a centralized server, second web server, with static IP and domain name.

there will be a lot of first server, connected to the internet through dial-up or broadband connection and most of them will use dynamic ip address.

both server are running on Apache Tomcat 4.0.2, and the first server's web contents will be protected with form based realm.
for everyday usage, user just have to log-on the their own web server, first server, and do their stuff there.

but, there will be an occasion where users may have to activate their web server, first server, to the centralized server, second server.
in order to do that, users will access activation jsp page on their web server, first server and enter their particulars there. after done, the form will be POST to the servlet on second server.

second server in event receving activation data, will then process it and then will send the result back to some jsp page on first server using response.sendRedirect GET method. the jsp page will then process the result from second server and the display it on user browser.
[ May 19, 2004: Message edited by: Ariffin Ahmad ]
20 years ago
JSP
i have two web server:
first one running JSP pages on protected folder in tomcat.
second one running servlet, also in tomcat.

user will open a browser and go to the first web server.
after form based authentication done, user will be able to do what he want.
then, user may fill up a form, and then the form will be POST to the servlet on second server.
servlet on second server will process the form and redirect user browser to the JSP page on the first web server, with additional GET parameter.
the JSP page on first server then should take the GET parameter and display it on user browser.

the question is, how do i be able to pass the GET parameter from servlet to the JSP page on first web server. it seems that, every time i tried it, the first server keep redirect me to the login page. and after i logon, some error message displayed says it can't redirect my request.

any idea?....
20 years ago
JSP
i have a server running in my LAN and i don't know the server address.
i plan to get all available IP addresses in my network and then try to open socket connection to each of them.
on successful connection, i'll assume that IP address is the one I'm looking for.
the problem is, how do i get the available IP Address within my LAN network?...
cheers.....
i have ipaq series 38xx and 39xx and willing to write my own java application for it.
but, i noticed, there's no jvm on my ipaqs.
any suggestion on how do i install jvm on my ipaq and what api should i used to develop my java application.
cheers.....
21 years ago
i have ipaq series 38xx and 39xx and willing to write my own java application for it.
but, i noticed, there's no jvm on my ipaqs.
any suggestion on how do i install jvm on my ipaq and what api should i used to develop my java application.
cheers.....
21 years ago
i'm successfully use swing 1.1 together with my MS Visual J++ 6.
i have my MFC as main window and upon menu selection, i will pop up swing frame. inside that frame, i'm implement borderlayout and put a JPanel in the center of that layout. that JPanel using flowlayout.
depending on user configuration, i will display a number sliders on that JPanel.
the problem is, most of the time, it working fine.
but, sometime, the slider will not appears and sometime, only few slider appears.
any idea on what happended?...
21 years ago
i have one class, let says class C1, which extending Bean class.
C1 class will run as background service and will sometime fire an event. this event then, will be handled by my main class.
i just wonder, when my main class handle that event, is my C1 class or main class will be pause, or that event will actually create another thread to for it?
cheers
21 years ago