Renato Veneroso

+ Follow
since Mar 18, 2004
Merit badge: grant badges
For More
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 Renato Veneroso

Hi everybody,

We´re migrating some applications from Tomcat 5 to Tomcat 6 but I'm having some problems with the new environment. First, let me explain how our current environment works and how it's configured.

- The user authentication begins on a Java application running on Tomcat but is actually done on a Lotus Domino server. This process is transparent for the user;
- When the authentication completes a token is created for the user, the token is stored as a cookie on the Tomcat user's session and the user has access to the main Java application. The token object is of type LtpaToken;
- On the Java application there's a link by which the user can access his emails. The user's mailbox is on a Lotus Notes server so the link takes the user to that server. As the user already has a LtpaToken the Notes server recognizes him as authenticated so no credentials are required;
- The classes responsible for Tomcat communicating with the Lotus Domino server are packaged on a jar file named NCSO.jar. This file is provided by IBM;
- The LtpaToken is packaged (along with other classes) on a jar file named domino.jar. This file is generated by us;
- The NCSO.jar file is deployed on the $CATALINA_HOME/shared/lib directory;
- The domino.jar file is deployed on the $CATALINA_HOME/shared/lib directory;
- The Apache version is 2.2.3 and Tomcat version is 5.5.25;

Now, I'm configuring a new server with Apache 2.2.14 and Tomcat 6.0.28. Almost everything is working fine but when the user tries to access his mailbox the Lotus Notes server is not recognizing him as authenticated and is asking for his credentials. It's behaving as if there's no LtpaToken for that user but there is; I can see it by inspecting the cookies by the apropriated browser option.

I deployed the NCSO.jar and domino.jar files on the $CATALINA_HOME/lib directory as there's no shared/lib directory on Tomcat 6. The authentication is taking place without any errors so I think the NCSO.jar and domino.jar files are "visible" to the applications. Besides putting these files on the $CATALINA_HOME/lib directory, do I need to do any other configuration settings?

I'm suspecting there's some problem with the LtpaToken cookie creation but I don't know where the problem can be.

Does anyone have idea of what can be causing this problem?

I thank you very much in advance.

13 years ago

Everybody who succeed on the SCWCD posts a topic here so I will not break the chain. :-)

I took the exam today and cleared it with 84%. To tell the truth I am so tired of keeping studying for this exam that I really didn't care about the score. All that I wanted was to pass it. Anyway, 84% is more than enough for me.

16 years ago
Hi folks,

I'm going to take the SCWCD exam next Friday. Over the last 2 weeks I've been taking the mock exams available on Whizlab's SCWCD and Enthuware's JWebPlus. I'm doing fine on these mock exams, getting 70 to 80% on both. However, I've noticed these programs have several mistakes (mainly typos).

So I ask you: are the marks we get on these programs a reliable indication that we'll succeed on SCWCD exam? I'm not going to change the date of my exam but I would like to get a clear idea of how good (or bad) I really am.

Thanks in advance.
Congratulations Nagendra.

Let me ask you something: by "EJB3 by OReilly" do you mean "Enterprise JavaBeans 3.0, Fifth Edition" (

I'm looking for a book I can use for preparing for the SCBCD5 exam.

Thanks and congratulations once again.
Well, after saying I would take the 1.3 SCBCD exam I've changed my mind. Besides the advices I've got here, I talked to my former Java teacher and he strongly recommended taking the new SCBCD 5 exam.

So, I would like to ask you another question: which book do you recommend reading to prepare to the EJB 3.0 exam? As I said before, the two well-known EJB certification books ("Head First EJB" and "SCBCD Study Kit") haven't been updated to EJB 3.0 so I will have to use another book.

From your experience and knowledge of the topic, which book(s) do you recommend me? By the way: I've never worked with EJB's.

Thank you once again.
Thank you for your replies guys.

Actually, I haven't worked with EJBs so far and don't even know if some day I will. My first thoughts on taking the SCBCD exam are for a matter of career improvement. However, you mentioned two points I think I should really consider when deciding what version of the exam to take:

1 - Most applications are written with EJB2;
2 - Learning EJB3 from EJB2 is likely to be easy but the opposite isn't true.

So I think I'll take the 1.3 (EJB2) version of the exam.

Thank you very much again.
Hi folks,

I would like to hear your opinion on taking the SCBCD 1.3 exam. Now that Sun has released the SCBCD 5 is still worth taking the "old" 1.3 version of the exam? I'm finishing preparing to take the SCWCD exam. As soon as I succeed in it, I'm considering the idea of preparing to take SCBCD. I know A LOT of things has changed in EJB world so studying for the SCBCD 1.3 exam doesn't seem much helpful (if any) to take the SCBCD 5 exam. I'm really in doubt about what version of the exam to take.

As far as I'm concerned the most common used certification books - "Head First EJB" from OReilly and "SCBCD Exam Study Kit" from Manning - haven't been updated for the new SCBCD 5 exam so the lack of material may be a problem to take the new version of the exam.

What do you think.

Thanks in advance.
Hello people,

Does anybody know whether is possible to include the "FORCE INDEX" clause in an HQL sentence? Due to what seems to be a MySQL bug the best index of a table has not been used and this is causing performance loss. The problem can be fixed in pure SQL using the clause "FORCE INDEX" but in HQL it cannot be used (at least not explicitly).

Is there a way I can re-write my HQL so that it forces the use of specific index?

Thanks in advance.
Hello everybody,

We have a J2EE application running with Tomcat 5.0.16 on both Windows (development) and Linux (production) environments. Over the last two weeks the application has halted a couple of times a day with 'out of memory' errors so we want to 'profile' the application to spot the problems. I downloaded HP JMeter and will use it as soon as I have a profiling file. Here is my problem: I am not able to start the JVM correctly so that it generates the profiling file. So far I have included a like such as

set JAVA_OPTS= -Xrunhprof cpu=samples,depth=6,file=my_profiling_file.txt ...(other parameters)

in my catalina.bat file (I am working on the development environment) but this does not yield the expected result. I mean, the JVM starts without any error messages but it does not generate any profiling file.

Does anybody know why this happens? Am I doing something wrong? Is there a better way to generate the profiling file?

Thanks in advance.
Hi all,

I have an application that calls a method from a DAO class based on parameters provided by the user. The method returns an iterator based on a resultset. The main application works on that iterator and, for each item from it writes a line to a file on disk. Usually I have the resultset with thousands of lines which means my iterator and the resultset are active for a long time. As the execution of the application is assincronous (scheduled by Quartz) sometimes I have one active resultset whist trying to get a new one. That's the time when the problem arises. I'm getting the following error message:

java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@9aafb3 is still active. Only one streaming result set may be open and in use per-connection. Ensure that you have called .close() on any active result sets before attempting more queries.
at com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(
at com.mysql.jdbc.MysqlIO.sendCommand(
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
at com.mysql.jdbc.MysqlIO.sqlQuery(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Connection.setAutoCommit(
at org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(
at net.sf.hibernate.transaction.JDBCTransaction.toggleAutoCommit(
at net.sf.hibernate.transaction.JDBCTransaction.rollback(
at org.springframework.orm.hibernate.HibernateTransactionManager.doRollback(
at org.springframework.transaction.interceptor.TransactionAspectSupport.doCloseTransactionAfterThrowing(
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.springframework.scheduling.quartz.QuartzJobBean.execute(
at org.quartz.simpl.SimpleThreadPool$

What exactly does this message mean? Can't I have two simultaneosly active resultsets? I'm using MySql. Is this a MySql limitation?

Any help is welcome.

Thanks in advance.
[ September 06, 2005: Message edited by: Bear Bibeault ]
Hi everybody,
Although not new to the Java language I'm new to Java development tools. I need to develop applications with J2SE and most of them will have GUI in either AWT or Swing. Developing such components using a simple text editor is not an easy task so I'll need a development tool.
It seems I can use Forte For Java, NetBeans or JBuilder to develop my applications but I would like to know what is (are) the best choice(s). Which ones are available for free download? Which ones have good documentation (I'll have to learn how to use the tool by myself)?
Thanks in advance.
Hi everybody,
I've looked for some example code to do so but I haven't found. I've read Sun tutorials, articles and other tutorials but unfortunately I haven't found a simple example code that shows me how to send the contents of a text file straight to a network printer. I read Jean-Pierre Dub� (which I found by reading messages from this forum) and he says rendering text is one of the most complex tasks in Java. Well, I think I have to believe in him. But what if I'm making things harder than they actually are? I mean, I may not have understood what's on tutorials and on the messages on this forum so I ask you: is it really so hard to print the contents of a text file in Java?
Thanks in advance.
20 years ago