Paulo Crestani

Greenhorn
+ Follow
since Nov 06, 2007
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 Paulo Crestani

Hi,

I've been working with richfaces using a custom skin. Moreover, some pages use ajax through a4j:support and a4j:outputPanel. The custom skin feature I am using is working properly, as far as I don't trigger ajax rendering of the page, because because after an outputPanel is rendered with ajax, the skin breaks, that is, jsf component's original look is rendered. The most intriguing thing is that when I refresh the page manually (with the browser refresh command), the page recovers my skin style.

Have any one of you ever had this problem? I am also using Seam framework and the following are the most important configuration files of my webapp:


web.xml




faces-config.xml



components.xml




13 years ago
JSF
Friends,

I have a project in which I will have to work with EJB2.1, but I want to avoid the nightmare of working with EJB2.1 entity beans. So, I chose to work with JPA integrated with my EJB2.1 session beans. Still, I would like to use the transaction facilities provided by the containse.

Is it possible to bind myself an implementation of EntityManager (say Hibernate Entity Manager) in the container and then do a jndi lookup for the EntityManager in my session beans' code, still participating on the container transactions like is the case with EJB3 @PersistenceContext?

Do anyone know where I could get a tutorial that explains how to deal with this kind of situation?

Best regards,

Paulo Crestani.

[ July 28, 2008: Message edited by: Paulo Crestani ]

[ July 28, 2008: Message edited by: Paulo Crestani ]

[ July 28, 2008: Message edited by: Paulo Crestani ]
[ July 28, 2008: Message edited by: Paulo Crestani ]
Friends,

As far as I am concerned, SCWCD from version 1.4 to 1.5 has only minor changes. Nevertheless, a new version of the Head First Servlets and JSP has been release.

Has anyone already read this book? I wonder if the upgrade is worthy for those that already have the previous book release, and I suppose it is not. Anyway, if anyone can tell me a word about it I thank you.

Regards,

Paulo Crestani.
[ April 08, 2008: Message edited by: Paulo Crestani ]
Friends,

It seems we won't have a new release of Head First EJB for a while.


---------------

Hi pcresta-

Unfortunately, there's not a new release of Head First EJB planned. It's something we want - which is why Chris saw it in our internal databases - but not something we've been able to find authors for.
Because EJB 3.0 changed so drastically from EJB 2.0, it's not as much a revision as, in many respects, an entirely new book. And Bert Bates and Kathy Sierra have become too busy with several other projects (including the recently-released Head First Servlets, 2nd edition) to invest the time into a new edition of EJB.
All that said, we are actively looking for EJB authors, and it's a book that we'd like very much to sign. I know that's not a terribly exciting or encouraging answer, but I wanted to be up-front.
And anyone out there dying to get into the Head First family, EJB would be a great title to propose and audition for! Check out the Write For Us link at http://www.headfirstlabs.com.

Thanks
Brett McLaughlin
Series Editor, Head First

---------------

http://getsatisfaction.com/oreilly/topics/new_release_wanted_for_head_first_ejb
Thanks a lot Ulf and Freddy!
Friends,

My specification says that I "may develop your code using any implementation of the Java 2 platform, but the submission that you return must have been tested and shown to work under a production (not development) version of the Sun Microsystems' Java 2".

The version of my installed Java is:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

How do I know if it is a development or a production version? Does the "b05" have anything to do with "Beta"?

Thanks,

Paulo Crestani
Very good! Congratulations.
Guys,

I am approaching the final leap in my coding work for the SCJD and one thing remains fuzzy to me. I don�t know exactly what to expect to find in the written test.

If there is anyone here that has already been through this phase, I would be pleased If you can share your experience.

All that I know is that there are some written questions about the assignment and that the purpose is to identify you as the real author of the project. Nevetheless, it is quite generic. Would someone have a more specific description or hint about how to prepare for this test?

Regards,

Paulo Crestani.
Great thanks,

It works now! Guys I am sorry for posting such a naive question in this forum.

Now I noticed that there is another forum specially for Servlets on Java Ranch and I will stay on that one until I upgrade my level on Servlets so I can try SCWCD.

Thank you.
Friends,

I am very begginer with servlets and I am having trouble to compile my servlet class. For those who follow the Head First book, it is the example of chapter 3.

The problem is that the javac can not find the servlet classes like HttpServlet, HttpServletRequest and HttpServletResponse. In the book the authors use classpath to direct javac to the proper directory where to find the classes and in that example, the classes are under .../tomcat/commom/lib

I am working with Tomcat 6 and I did not find a dir .../tomcat/commom/lib. There is a ...\Tomcat 6.0\lib and I suppose it is this one, but it is under "Program Files" and javac is complaining about the blancs in the dir name. Is there a way to solve this?

Thanks,

Paulo Crestani.
Ok Alex,

The benefits of the plugin are NONE in my opinion. I just thought they would help me put RMI to work, but then I realized that the problem was in the JUnit framework. So I uninstalled the plugin. Just forget about it, because all it does is some debug support.

Thanks,

Paulo C.
This post does not seem to have attracted much attention after all.

For those who may be interested in the future, I generated a class stub by hand with rmic, but still got a nullPointerException when invoking a remote method from JUnit.

Then I tried a test class with a main() method that I could run by command line and containing the same methods of the JUnit class (except that I suppressed the JUnit assertions). This time I could invoke the remote method without the nullPointerException.

Well, it seems I will have to test my RMI connection this way. It works. I don�t know why JUnit did not work. It is a question I leave for the generations to come.

Paulo C.
[ January 07, 2008: Message edited by: Paulo Crestani ]
Yes,

It is for testing only. All my assignment code is pure Java and the testing tools would be just a way to make unit tests easier. In the end I will compile all the assignment classes by hand and apply system tests out of Eclipse. But so far I could not put RMI to work in Eclipse.

Paulo C.
Friends,

I am using Eclipse IDE to code my SCJD solution to take advantage of JUnit and other IDE tools during the coding phase.

Now I am up to start testing my network layer, but I�m having problems to accomplish this with Eclipse support. I downloaded an RMI plug in at http://www.genady.net/rmi/v20/ that should be working, but I am receiving a null pointer exception when trying to access my remote methods.

It seems that when the methods are invoked they are not found, but both my classes for server registration and client connection executed without exceptions. I suppose I am having trouble to create the remote class stub. If anyone has had the same problem or can help me somehow, that would be great.

Thank you,

Paulo C.