Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!

Gunnar Maluf

Ranch Hand
+ Follow
since Dec 29, 2007
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 Gunnar Maluf

Hello all,

I am trying to configure a hibernate java project using annotations and I am getting the following error:
org.postgresql.jdbc2.Jdbc2DatabaseMetaData.supportsGetGeneratedKeys()Z

I have the following jars in my project:
C:\Program Files\Java\jre1.6.0_07\lib\resources.jar
C:\Program Files\Java\jre1.6.0_07\lib\rt.jar
C:\Program Files\Java\jre1.6.0_07\lib\jsse.jar
C:\Program Files\Java\jre1.6.0_07\lib\jce.jar
C:\Program Files\Java\jre1.6.0_07\lib\charsets.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\dnsns.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\localedata.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\postgresql-8.3-603.jdbc2.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\sunjce_provider.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\sunmscapi.jar
C:\Program Files\Java\jre1.6.0_07\lib\ext\sunpkcs11.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\antlr-2.7.6.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\commons-collections-3.1.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\dom4j-1.6.1.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\javassist-3.9.0.GA.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\jta-1.1.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\lib\required\slf4j-api-1.5.8.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-distribution-3.3.2.GA\hibernate3.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-annotations-3.4.0.GA\hibernate-annotations.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-annotations-3.4.0.GA\lib\ejb3-persistence.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\hibernate-annotations-3.4.0.GA\lib\hibernate-commons-annotations.jar
C:\Users\Gunnar\Documents\Text\Java\Hibernate\slf4j-1.5.8\slf4j-nop-1.5.8.jar

and the following classes:










Any help is appreciatted.

best regards
Gunnar

Jaikiran Pai wrote:The output looks right to me. Were you expecting something else?



Since I am starting studying EJB3 now....so I didn't know what to expect.
Although I was expecting an Object of my bean type, someone in another forum explained to me that EJB returns a proxy for the object.

Now I would like to know how to use a local interface, could you please help me?
Is it possible (and a good practice) to use a local interface in the client?

best regards
Hello all!

I need some help with the following:

Web Server - Jboss 5.1.0 GA
IDE - eclipse

I created a EJB project using eclipse and the following files:

ejb.server.HelloWorld.HelloWorldBeanRemote


ejb.server.HelloWorld.HelloWorldBeanLocal



ejb.server.HelloWorld.HelloWorldBean



and the client



I execute the project from Eclipse and my ejb is deployed as I get the message:
11:27:41,999 INFO [EJBContainer] STARTED EJB: ejb.server.HelloWorld.HelloWorldBean ejbName: HelloWorldBean
11:27:42,018 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

HelloWorldBean/remote - EJB3.x Default Remote Business Interface
HelloWorldBean/remote-ejb.server.HelloWorld.HelloWorldBeanRemote - EJB3.x Remote Business Interface
HelloWorldBean/local - EJB3.x Default Local Business Interface
HelloWorldBean/local-ejb.server.HelloWorld.HelloWorldBeanLocal - EJB3.x Local Business Interface




When I run the client as a JAVA APPLICATION I get the output:
Proxy to jboss.j2ee:jar=EJB.jar,name=HelloWorldBean,service=EJB3 implementing [interface ejb.server.HelloWorld.HelloWorldBeanRemote]
Proxy to jboss.j2ee:jar=EJB.jar,name=HelloWorldBean,service=EJB3 implementing [interface ejb.server.HelloWorld.HelloWorldBeanRemote]
Proxy to jboss.j2ee:jar=EJB.jar,name=HelloWorldBean,service=EJB3 implementing [interface ejb.server.HelloWorld.HelloWorldBeanRemote]

What I am doing wrong that I dont get the object I want from the Container?

Hello All

Passed one more.
I had one extra voucher to use so i took this test. I prepared 2-4 hours reading about the topics.

Regards
14 years ago
Hello all ranchers,

I would like to share with you that i passed the scwcd 5 exam with 86%.

I read the notes on the j2ee patterns from Peabody(thanks, i got 83% on patterns) and ready HF second edition 3-4 times and used jwebplus as my mock. Didnt liked the final book mock exam...

I got 39 correct answers on the final mock exam and the 20 points rule did not applied to me (thanks God), it only served to destroy my confidence....on the other hand...jwebplus was really helpfull to understand concepts and to learn api,etc.

Thank you all for answering my last time questinos...

best regards to all

Gunnar
14 years ago
Does it happen in the first client request or it can happen at deploy time?
What the specs say about it?

regards
Even if the expression was inside the for tag it would not compile. Expressions doesnt have access to the tag vars.

correct me if im wrong.

regards
Gunnar
[ December 04, 2008: Message edited by: Gunnar Maluf ]
Is the filter obligated to call chain.doFilter(req,resp)?
Thank you Deepak Jain!

regards
Gunnar


Option C is marked as beeing the correct answer. I disagree. I think D is the correct answer.

Can someone confirm it please?

regards

Originally posted by Chatura Dilan:
I added <%@ page isErrorPage="true" %> to both exception pages, but i get the same results, i don't know why? anyone have this issue? anyway what do we select if we get this kind of question in the exam?



This is wrong. You have to add <%@ page errorPage="arException.jsp" %> in the
index.jsp

regards
Gunnar

Originally posted by Chatura Dilan:
hello Joy here is the code

My DD




index.jsp



arException.jsp




tException.jsp



The book says: Declaring a catch-all error page
This applies to everything in your web app�not just JSPs. You can override it in individual JSPs by adding a page directive with an errorPage attribute.

If you override it, it works.

Originally posted by Jan Sterk:


Why is 19.5 wrong?



I think the 19.5 means that the web.xml does not define *where* phisically your deployment should happen. It defines the configuration of your web app and not the deployment itself.

regards,
Gunnar
yup...

But i remember seeing a question using something like <%= ${movieList[i]} %> in JWebPlus saying the i var was only visible inside the scripts.... I tried this approuch and couldnt make it work.

regards
Gunnar
I have the following code:




Is it possible to make this work?

regards
Gunnar