Paul Yen

+ Follow
since Feb 08, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul Yen

I tried the tutorial in objectlearn.
I used the Lomboz + Eclipse + Resin. When I tried to do the client testing, I got an error which is "no /hessian/ found" . If I removed the "/hessian/" from the url provider. It throw an exception and stop the process. The exception is unknow code:m.

Any one has tried that tutorial before, and completed it. Or anyone has any idea. I would appreciate that.

Thanks a lot.
15 years ago
That is great!! I have more time work on it. Thanks a lot.
Hi All,
Does anyone know that if I can use Tomcat for servlet/jsp container and J2EE RI for EJB container?? I tried and failed. So do I really need other EJB container like Jboss and work with Tomcat 4.1??
Thanks for all your help!!
16 years ago
When I read HFEJB book, it only throws exception in Home interface but not in the bean class for create() method. I download the example code from the website of HFEJB. In that CustomerBean code, I saw it declares throw CreateException in ejbCreate() method. I just confused about this. Is this needed or not?? Cuz when I deploy it without put that exception in ejbCreate(), it failed. With it, I can deploy it without any problem. Any one has experience on this?
Thats fantastic. Thanks Kathy, I got my first EJB bean running. World is so beautiful!!
After 21 days I got SCJP. I decided go for SCWCD and I passed it today with 90%. Many thanks to javaranchers.
Special thanks to:
1. SCWCD study kit by Hanumanth Deshmukh and Jignesh Malavia
2. JavaRanch's own SCWCD Mock Exam
3. Other Mock Exams
Whizlabs SCWCD Exam Simulator
EnthuWare's JWebPlus Commerical Exam
Anand Chawla's Mock Exam
Friends, study hard and do all free mock exams. You can pass it without any problem.
16 years ago
I bought the exam two weeks ago and registered yesterday, Feb 28, 2004.
Maybe you can try that link first and contact the sun if necessary.
Good Luck
Hi Adilson,
I don't know why you have that problem. I just registered the exam and made an appointment with my test center online. So I think you can ask Sun office to know what happened. The exam Voucher is effective for one year.

Hi Leandro,
If you use dispatcher, it will forward to the b.jsp page first then include the a.jsp page. Therefore the result is different from doing <jsp:include>.

Hi Michael,
In SCWCD Exam Study Kit, it mentions that if you omit the braces might cause an error at compile time or an undesired behavior at runtime.
I think the reason might be when you try to use session.getAttribute( "theName" )to display the value. You have to cast it to a String, because seesion.getAttribute returns a Object not a String. Even the toString() inside the object will not return a value for the object, it will only return a reference to it which is null. That's why you get a null value. Try to do this (String)session.getAttribute. It will work. If I am wrong, please let me know. By the way, the default value of session is set to true for JSP page.
[ February 19, 2004: Message edited by: Paul Yen ]
[ February 19, 2004: Message edited by: Paul Yen ]
Recently, I was doing the example on chapter 9 in SCWCD Exam Study Kit book. I tried to put security requirements on web.xml and run the program. Only the first time, it run exactly the result the same as book. If I tried to refresh and run again, it told me that "Access to the requested resource has been denied". It will work properly again only if I shutdown the server and turn on again. I use Java TM Web Services Developer Pack 1.3. Therefore I am so counfused about this, is this a secure way to protect the servlet??
The below is my code on web.xml and html page.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<web-resource-name>declarative security test</web-resource-name>
<form method="POST" action="servlet/SecureServlet">
<input type="text" name="username">
<input type="submit" value="OK">
You can make a call to SunMicrosystem or email to They will fix the problem for you. I have that problem, too. And it is all okay now.
16 years ago